Files
git-agent-sync/bin/git-agent-sync
7000pctAUTO ddcfde4be2
Some checks failed
CI / test (push) Has been cancelled
fix: Rename files to correct paths (remove leading dots)
2026-02-03 08:05:33 +00:00

18 lines
371 B
Bash

#!/bin/bash
# Get the directory where this script is located
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Find Node.js
if [ -n "$NODE_PATH" ]; then
NODE="$NODE_PATH"
elif command -v node &> /dev/null; then
NODE="node"
else
echo "Error: Node.js is not installed" >&2
exit 1
fi
# Run the CLI
exec "$NODE" "$SCRIPT_DIR/dist/index.js" "$@"