diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2015-11-29 10:26:42 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2015-11-29 12:16:46 (GMT) |
commit | baf62f66bb6ee991a3f3a9430842f5f9e9b0d697 (patch) | |
tree | 6c81f60c0d9296d924088e1b7ef43e334a7a1d6c /tools/patch-tool-mxe | |
parent | 499ae65452af1a6e8260aad561b63a3782fb59fe (diff) | |
download | mxe-baf62f66bb6ee991a3f3a9430842f5f9e9b0d697.zip mxe-baf62f66bb6ee991a3f3a9430842f5f9e9b0d697.tar.gz mxe-baf62f66bb6ee991a3f3a9430842f5f9e9b0d697.tar.bz2 |
patch-tool-mxe: fix getting patch_name
Previous implementation failed with "set -o nounset":
./tools/patch-tool-mxe: line 10: $3: unbound variable
see #983
Diffstat (limited to 'tools/patch-tool-mxe')
-rwxr-xr-x | tools/patch-tool-mxe | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/patch-tool-mxe b/tools/patch-tool-mxe index 8632612..ceb3576 100755 --- a/tools/patch-tool-mxe +++ b/tools/patch-tool-mxe @@ -5,10 +5,7 @@ cmd=$1 pkg=$2 -patch_name=$3 -if [ -z "$patch_name" ]; then - patch_name=1-fixes -fi +patch_name=${3:-1-fixes} setupEnv() { # MXE directory |