From 525d516df94b7c044cd97de27b6924d188ed4048 Mon Sep 17 00:00:00 2001 From: Victor Lowther Date: Wed, 29 Jul 2009 17:36:31 -0400 Subject: Use $(( )) for arithmetic statements instead of let or $[ ]. --- sysconfig/network-scripts/network-functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sysconfig/network-scripts/network-functions') diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index fe10aae8..1583a3ae 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -361,12 +361,12 @@ change_resolv_conf () s="$s"$'\n'; fi; if [ $# -gt 1 ]; then - let n_args=$#; + n_args=$#; while [ $n_args -gt 0 ]; do if [[ "$s" = *$1* ]]; then shift; - let n_args=n_args-1; + n_args=$(($n_args-1)); continue; fi; s="$s$1"; @@ -374,7 +374,7 @@ change_resolv_conf () if [ $# -gt 0 ]; then s="$s"$'\n'; fi; - let n_args=n_args-1; + n_args=$(($n_args-1)); done; elif [ $# -eq 1 ]; then if [ "x$s" != "x" ]; then -- cgit v1.2.1