summaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authorvd <vd@FreeBSD.org>2006-04-12 05:23:04 +0000
committervd <vd@FreeBSD.org>2006-04-12 05:23:04 +0000
commit1e0b5b691f0a8fbadcbd8fee9f3e6227f0f4184f (patch)
tree6b8280e6454e35a60f0d53a4016c2116b6bdccce /Tools/scripts
parent44d8231ef37032da6a986c3476223cc877fb72d6 (diff)
downloadFreeBSD-ports-1e0b5b691f0a8fbadcbd8fee9f3e6227f0f4184f.zip
FreeBSD-ports-1e0b5b691f0a8fbadcbd8fee9f3e6227f0f4184f.tar.gz
Quote ${1} so we don't get ``[: =: unexpected operator'' if the script
is started without arguments.
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-xTools/scripts/rmport2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/rmport b/Tools/scripts/rmport
index 487fc8c..7c9fc79 100755
--- a/Tools/scripts/rmport
+++ b/Tools/scripts/rmport
@@ -252,7 +252,7 @@ usage()
# main
-if [ ${#} -eq 0 -o ${1} = "-h" -o ${1} = "--help" ] ; then
+if [ ${#} -eq 0 -o "${1}" = "-h" -o "${1}" = "--help" ] ; then
usage
fi
OpenPOWER on IntegriCloud