mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-03-30 21:53:28 +08:00
18 lines
588 B
Bash
Executable File
18 lines
588 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# install.sh — Legacy shell entrypoint for the ECC installer.
|
|
#
|
|
# This wrapper resolves the real repo/package root when invoked through a
|
|
# symlinked npm bin, then delegates to the Node-based installer runtime.
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_PATH="$0"
|
|
while [ -L "$SCRIPT_PATH" ]; do
|
|
link_dir="$(cd "$(dirname "$SCRIPT_PATH")" && pwd)"
|
|
SCRIPT_PATH="$(readlink "$SCRIPT_PATH")"
|
|
[[ "$SCRIPT_PATH" != /* ]] && SCRIPT_PATH="$link_dir/$SCRIPT_PATH"
|
|
done
|
|
SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_PATH")" && pwd)"
|
|
|
|
exec node "$SCRIPT_DIR/scripts/install-apply.js" "$@"
|