Stop using the [ -z "$@" ] test, use [ $# = 0 ] instead, #176554.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user