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

@@ -114,7 +114,7 @@ pppd_pre_start() {
[ -n "$1" ] && chatopts="${chatopts} -T '$1'"
[ -n "$2" ] && chatopts="${chatopts} -U '$2'"
eval $(_get_array "chat_${IFVAR}")
if [ -n "$@" ] ; then
if [ $# != 0 ] ; then
opts="${opts} connect $(printf "'%s' " "${chatopts} $(printf "'%s' " "$@")")"
fi