sync: auto-sync from Mikes-MacBook-Air.local at 2026-06-06 06:47:07
Author: Mike Swanson Machine: Mikes-MacBook-Air.local Timestamp: 2026-06-06 06:47:07
This commit is contained in:
@@ -218,7 +218,16 @@ REMOTE_PS1="\$env:TEMP\\${REMOTE_TAG}.ps1"
|
||||
|
||||
# Produce base64 (single line) and split into chunks.
|
||||
B64_FILE="$WORK_DIR/probe.b64"
|
||||
base64 -w0 "$PROBE" > "$B64_FILE" 2>/dev/null || base64 "$PROBE" | tr -d '\n' > "$B64_FILE"
|
||||
# macOS (BSD) base64 uses -i for input file and has no line-wrap flag (outputs single line by default).
|
||||
# GNU base64 accepts file as positional arg and uses -w0 for no wrap.
|
||||
if base64 -i "$PROBE" > "$B64_FILE" 2>/dev/null; then
|
||||
: # macOS/BSD path succeeded
|
||||
elif base64 -w0 "$PROBE" > "$B64_FILE" 2>/dev/null; then
|
||||
: # GNU path succeeded
|
||||
else
|
||||
# Fallback: stdin input, strip newlines
|
||||
base64 < "$PROBE" | tr -d '\n' > "$B64_FILE"
|
||||
fi
|
||||
CHUNK_DIR="$WORK_DIR/chunks"
|
||||
mkdir -p "$CHUNK_DIR"
|
||||
split -b 24000 "$B64_FILE" "$CHUNK_DIR/chunk_"
|
||||
|
||||
Reference in New Issue
Block a user