Files
sing-box/release/local/update.sh
2026-01-17 05:46:23 +08:00

16 lines
304 B
Bash
Executable File

#!/usr/bin/env bash
set -e -o pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
source "$SCRIPT_DIR/common.sh"
echo "Updating sing-box from git repository..."
cd "$PROJECT_DIR"
git fetch
git reset FETCH_HEAD --hard
git clean -fdx
echo ""
echo "Running reinstall..."
exec "$SCRIPT_DIR/reinstall.sh"