Fix Install
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
INSTALL_DIR="$HOME/DragonX"
|
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..."
|
echo "Installing DragonX into $INSTALL_DIR..."
|
||||||
|
|
||||||
@@ -17,10 +17,12 @@ fi
|
|||||||
# Fetch code
|
# Fetch code
|
||||||
if [ -d "$INSTALL_DIR/.git" ]; then
|
if [ -d "$INSTALL_DIR/.git" ]; then
|
||||||
echo "Existing repo detected. Pulling latest..."
|
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
|
else
|
||||||
rm -rf "$INSTALL_DIR"
|
rm -rf "$INSTALL_DIR"
|
||||||
git clone --depth 1 "$REPO_URL" "$INSTALL_DIR"
|
git clone --depth 1 --branch beta "$REPO_URL" "$INSTALL_DIR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Ensure executables are present & executable
|
# Ensure executables are present & executable
|
||||||
|
|||||||
Reference in New Issue
Block a user