From 8f09d1a7b5fa2333c3c516cf2ad4a27da48ed892 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Tue, 3 Feb 2026 07:53:13 +0000 Subject: [PATCH] Initial commit: git-agent-sync CLI tool --- .bin/git-agent-sync | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .bin/git-agent-sync diff --git a/.bin/git-agent-sync b/.bin/git-agent-sync new file mode 100644 index 0000000..4715091 --- /dev/null +++ b/.bin/git-agent-sync @@ -0,0 +1,17 @@ +#!/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" "$@"