aboutsummaryrefslogtreecommitdiff
path: root/net.Linux/arping.sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-30 13:19:26 +0000
committerRoy Marples <roy@marples.name>2007-04-30 13:19:26 +0000
commitc3d899714c6e68ea13cb15a75829ba16ea6cf217 (patch)
tree64de6cc8289e177f4b6738034779162bc0bb6fae /net.Linux/arping.sh
parent0380d98d7dd8d0880764a2d0878df56d4e858b45 (diff)
Stop using the [ -z "$@" ] test, use [ $# = 0 ] instead, #176554.
Diffstat (limited to 'net.Linux/arping.sh')
-rw-r--r--net.Linux/arping.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/net.Linux/arping.sh b/net.Linux/arping.sh
index 763cb4ce..817f8b2d 100644
--- a/net.Linux/arping.sh
+++ b/net.Linux/arping.sh
@@ -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