Skip to content

Commit

Permalink
fix: singbox installation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Oct 21, 2023
1 parent 46bc65c commit b43df02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions singbox/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ source ../common/utils.sh
rm -rf configs/*.template
latest=$(get_release_version hiddify-sing-box)

if [ "$(cat VERSION)" != $latest ]; then
if [ "$(cat VERSION)" != $latest ] || ! is_installed ./sing-box; then
pkg=$(dpkg --print-architecture)

curl -Lo sb.zip https://github.com/hiddify/hiddify-sing-box/releases/download/$latest/sing-box-linux-$pkg.zip
curl -Lo sb.zip https://github.com/hiddify/hiddify-sing-box/releases/download/v$latest/sing-box-linux-$pkg.zip

unzip -o sb.zip
cp -f sing-box-*/sing-box .
Expand Down

0 comments on commit b43df02

Please sign in to comment.