1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Quote ${1} so we don't get ``[: =: unexpected operator'' if the script

is started without arguments.
This commit is contained in:
Vasil Dimov 2006-04-12 05:23:04 +00:00
parent bd0cd85bd1
commit dffa807775
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=159354

View File

@ -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