From 9c05de766b33cd773c913ae4a901dae9a8e7e0b2 Mon Sep 17 00:00:00 2001 From: penguinehis Date: Fri, 10 Oct 2025 11:59:43 -0300 Subject: [PATCH] Fix Install --- install.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 8f1c2bf..8d4114a 100644 --- a/install.sh +++ b/install.sh @@ -4,7 +4,7 @@ set -e INSTALL_DIR="$HOME/DragonX" -REPO_URL="https://git.dr2.site/penguinehis/DragonX-SSH-Proxy/src/branch/beta/" +REPO_URL="https://git.dr2.site/penguinehis/DragonX-SSH-Proxy.git" echo "Installing DragonX into $INSTALL_DIR..." @@ -17,10 +17,12 @@ fi # Fetch code if [ -d "$INSTALL_DIR/.git" ]; then echo "Existing repo detected. Pulling latest..." - git -C "$INSTALL_DIR" pull --rebase --autostash || true + git -C "$INSTALL_DIR" fetch origin + git -C "$INSTALL_DIR" checkout beta + git -C "$INSTALL_DIR" pull --rebase --autostash origin beta || true else rm -rf "$INSTALL_DIR" - git clone --depth 1 "$REPO_URL" "$INSTALL_DIR" + git clone --depth 1 --branch beta "$REPO_URL" "$INSTALL_DIR" fi # Ensure executables are present & executable