From 053ca2ccac2ae5a17c65958906453ed2bf96fc4a Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Tue, 3 Feb 2026 08:41:05 +0000 Subject: [PATCH] chore: Push bin and README --- bin/git-agent-sync | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/bin/git-agent-sync b/bin/git-agent-sync index 4715091..edda235 100644 --- a/bin/git-agent-sync +++ b/bin/git-agent-sync @@ -1,17 +1,3 @@ -#!/bin/bash +#!/usr/bin/env node -# 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" "$@" +require('../dist/index.js');