aboutsummaryrefslogtreecommitdiff
path: root/linaro-hwpack-install
diff options
context:
space:
mode:
authorDave Martin <dave.martin@linaro.org>2010-10-07 17:33:34 +0100
committerDave Martin <dave.martin@linaro.org>2010-10-07 17:33:34 +0100
commit1faaa1a0db0e511be8b3262f81093241acf8a921 (patch)
treeb99e26794dd55993b1b0e65ebf2707601b357b62 /linaro-hwpack-install
parent4ce347e68be5a0cc4682226386f95607e3b6745f (diff)
Fix some more straightforward vulnerbilities regarding argument quoting.
This is deliberately non-exhaustive, since misquoting is widespread in the script, and the user is expected to know what he/she is doing anyway. The fixes should work around some more probably cases where wget -x creates tarball paths with spaces in, for example.
Diffstat (limited to 'linaro-hwpack-install')
-rwxr-xr-xlinaro-hwpack-install2
1 files changed, 1 insertions, 1 deletions
diff --git a/linaro-hwpack-install b/linaro-hwpack-install
index 12cb363..22eb674 100755
--- a/linaro-hwpack-install
+++ b/linaro-hwpack-install
@@ -40,7 +40,7 @@ if [ $# -eq 0 ]; then
elif [ $# -eq 1 ]; then
HWPACK_TARBALL=$1
elif [ $# -eq 2 ]; then
- if [ $1 != "--install-latest" ]; then
+ if [ "$1" != "--install-latest" ]; then
die "Unknown argument: $1 \n$usage_msg"
fi
INSTALL_LATEST="yes"