Stop using the [ -z "$@" ] test, use [ $# = 0 ] instead, #176554.

This commit is contained in:
Roy Marples
2007-04-30 13:19:26 +00:00
parent 0380d98d7d
commit c3d899714c
5 changed files with 7 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ arping_start() {
einfo "Pinging gateways on ${IFACE} for configuration"
eval $(_get_array "gateways_${IFVAR}")
if [ -z "$@" ] ; then
if [ $# = 0 ] ; then
eerror "No gateways have been defined (gateways_${IFVAR}=\"...\")"
return 1
fi