update.sh 304 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. set -e -o pipefail
  3. SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
  4. source "$SCRIPT_DIR/common.sh"
  5. echo "Updating sing-box from git repository..."
  6. cd "$PROJECT_DIR"
  7. git fetch
  8. git reset FETCH_HEAD --hard
  9. git clean -fdx
  10. echo ""
  11. echo "Running reinstall..."
  12. exec "$SCRIPT_DIR/reinstall.sh"