mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-04-13 02:27:19 +10:00
16 lines
304 B
Bash
Executable File
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" |