Files
sing-box-extended-mirror/release/local/update.sh
T

16 lines
304 B
Bash
Raw Normal View History

2022-07-30 08:39:34 +08:00
#!/usr/bin/env bash
set -e -o pipefail
2025-10-21 10:34:05 +08:00
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
source "$SCRIPT_DIR/common.sh"
2022-07-30 08:39:34 +08:00
2025-10-21 10:34:05 +08:00
echo "Updating sing-box from git repository..."
cd "$PROJECT_DIR"
2022-07-30 08:39:34 +08:00
git fetch
git reset FETCH_HEAD --hard
git clean -fdx
2025-10-21 10:34:05 +08:00
echo ""
echo "Running reinstall..."
exec "$SCRIPT_DIR/reinstall.sh"