From 80c0781acc737d4c0eeed205a8ea680a5117faf3 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Mar 2026 10:17:52 +0000 Subject: [PATCH 1/2] fix(install): install binary to /usr/local/bin instead of current directory Download to a temp file and move to /usr/local/bin so the binary is available on PATH system-wide rather than dropped in the user's folder. https://claude.ai/code/session_01KriqNVbEfa4zvw9xAh8nj5 --- install.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index befae3c..c89f4ed 100644 --- a/install.sh +++ b/install.sh @@ -36,14 +36,24 @@ else URL="https://github.com/$REPO/releases/download/$VERSION/aperiodic-$OS-$ARCH$EXT" fi +INSTALL_DIR="/usr/local/bin" + echo "Detected OS: $OS, Architecture: $ARCH" echo "Downloading Aperiodic CLI from $URL..." -if ! curl -L -o "$BINARY_NAME" "$URL"; then +TMP_FILE=$(mktemp) +if ! curl -L -o "$TMP_FILE" "$URL"; then echo "Error: Failed to download binary. Please check the repository and version." + rm -f "$TMP_FILE" exit 1 fi -chmod +x "$BINARY_NAME" +chmod +x "$TMP_FILE" + +if [ -w "$INSTALL_DIR" ]; then + mv "$TMP_FILE" "$INSTALL_DIR/$BINARY_NAME" +else + sudo mv "$TMP_FILE" "$INSTALL_DIR/$BINARY_NAME" +fi -echo "Installation complete. You can now run ./$BINARY_NAME" +echo "Installation complete. Run 'aperiodic' to get started." From 7763180cdfc69ff53ebe7ef3b3b8e94b4c955ab9 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Mar 2026 10:18:29 +0000 Subject: [PATCH 2/2] fix(Docs): update example symbol to perpetual-BTC-USDT:USDT https://claude.ai/code/session_01KriqNVbEfa4zvw9xAh8nj5 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cbb85c3..6388d4f 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ aperiodic symbols --exchange binance-futures ```bash aperiodic ohlcv \ --exchange binance-futures \ - --symbol BTC-USDT-PERP \ + --symbol perpetual-BTC-USDT:USDT \ --interval 1h \ --start-date 2024-01-01 \ --end-date 2024-03-31 \ @@ -127,7 +127,7 @@ aperiodic ohlcv \ ```bash aperiodic flow \ --exchange binance-futures \ - --symbol BTC-USDT-PERP \ + --symbol perpetual-BTC-USDT:USDT \ --interval 1h \ --start-date 2024-01-01 \ --end-date 2024-03-31 \ @@ -138,7 +138,7 @@ aperiodic flow \ ```bash aperiodic basis \ --exchange binance-futures \ - --symbol BTC-USDT-PERP \ + --symbol perpetual-BTC-USDT:USDT \ --interval 1h \ --start-date 2024-01-01 \ --end-date 2024-03-31 \