Fix Install

This commit is contained in:
2025-10-10 11:59:43 -03:00
parent 0a22fe6b0b
commit 9c05de766b

View File

@@ -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