github.com/sagernet/sing-box@v1.9.0-rc.20/release/local/update.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  set -e -o pipefail
     4  
     5  DIR=$(dirname "$0")
     6  PROJECT=$DIR/../..
     7  
     8  pushd $PROJECT
     9  git fetch
    10  git reset FETCH_HEAD --hard
    11  git clean -fdx
    12  popd
    13  
    14  $DIR/reinstall.sh