summaryrefslogtreecommitdiffstats
path: root/tools/patch-tool-mxe
diff options
context:
space:
mode:
authorBoris Nagaev <bnagaev@gmail.com>2015-11-29 10:26:42 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2015-11-29 12:16:46 (GMT)
commitbaf62f66bb6ee991a3f3a9430842f5f9e9b0d697 (patch)
tree6c81f60c0d9296d924088e1b7ef43e334a7a1d6c /tools/patch-tool-mxe
parent499ae65452af1a6e8260aad561b63a3782fb59fe (diff)
downloadmxe-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-xtools/patch-tool-mxe5
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