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:
parent
bd0cd85bd1
commit
dffa807775
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=159354
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user