Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ exec "$CCM_SH" "$@"
EOF
else
local content
content="$(cat <<'EOF'
IFS= read -r -d '' content <<'EOF' || true
#!/usr/bin/env bash
set -euo pipefail
CCM_SH="__DATA_DIR__/ccm.sh"
Expand All @@ -491,7 +491,6 @@ if [[ ! -f "$CCM_SH" ]]; then
fi
exec "$CCM_SH" "$@"
EOF
)"
content="${content//__DATA_DIR__/$data_dir}"
printf '%s\n' "$content" > "$target"
fi
Expand Down Expand Up @@ -631,7 +630,7 @@ fi
EOF
else
local content
content="$(cat <<'EOF'
IFS= read -r -d '' content <<'EOF' || true
#!/usr/bin/env bash
set -euo pipefail
CCM="__DATA_DIR__/ccm.sh"
Expand Down Expand Up @@ -751,7 +750,6 @@ else
exec claude "${claude_args[@]}"
fi
EOF
)"
content="${content//__DATA_DIR__/$data_dir}"
printf '%s\n' "$content" > "$target"
fi
Expand Down