Skip to content

Commit

Permalink
bin/pack.sh: set up upx in a subshell
Browse files Browse the repository at this point in the history
So that we don't end up in the wrong directory afterward.
  • Loading branch information
ctrueden committed Feb 3, 2024
1 parent 6c62092 commit fd48cde
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,20 @@ if [ ! -d .upx ]
then
v=4.2.2
case "$(uname -s)-$(uname -m)" in
Linux-x86_64)
Linux-x86_64) (
mkdir .upx &&
cd .upx &&
curl -fsLO https://github.com/upx/upx/releases/download/v$v/upx-$v-amd64_linux.tar.xz &&
tar xf upx-$v-amd64_linux.tar.xz
;;
MINGW*-x86_64)
)
MINGW*-x86_64) (
mkdir .upx &&
cd .upx &&
curl -fsLO https://github.com/upx/upx/releases/download/v$v/upx-$v-win64.zip &&
unzip upx-$v-win64.zip
;;
)
esac
fi

Expand Down

0 comments on commit fd48cde

Please sign in to comment.