update install.sh

This commit is contained in:
jerry901 2022-01-12 21:06:35 +09:00
parent a48d0bdcef
commit ba11e0e713

View File

@ -5,5 +5,5 @@ curl "https://api.github.com/repos/xvzc/SpoofDPI/releases/latest" |
sed -E 's/.*"([^"]+)".*/\1/' | sed -E 's/.*"([^"]+)".*/\1/' |
xargs -I {} curl -OL "https://github.com/xvzc/SpoofDPI/releases/download/"\{\}"/spoof-dpi-${1}.tar.gz" xargs -I {} curl -OL "https://github.com/xvzc/SpoofDPI/releases/download/"\{\}"/spoof-dpi-${1}.tar.gz"
tar -xzvf ./spoof-dpi-osx.tar.gz && rm -rf ./spoof-dpi-${1}.tar.gz && mv ./spoof-dpi /usr/local/bin && hash -r tar -xzvf ./spoof-dpi-${1}.tar.gz && rm -rf ./spoof-dpi-${1}.tar.gz && mv ./spoof-dpi /usr/local/bin && hash -r