diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2009-07-29 17:36:31 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2009-07-30 12:24:41 -0400 |
commit | 525d516df94b7c044cd97de27b6924d188ed4048 (patch) | |
tree | d3b0ea52cf800b61d647907b4263e55874fec616 /sysconfig/network-scripts/network-functions | |
parent | 1096cd2ebc150e5c74b5e8e4016b835f34cd3f48 (diff) | |
download | initscripts-525d516df94b7c044cd97de27b6924d188ed4048.tar initscripts-525d516df94b7c044cd97de27b6924d188ed4048.tar.gz initscripts-525d516df94b7c044cd97de27b6924d188ed4048.tar.bz2 initscripts-525d516df94b7c044cd97de27b6924d188ed4048.tar.xz initscripts-525d516df94b7c044cd97de27b6924d188ed4048.zip |
Use $(( )) for arithmetic statements instead of let or $[ ].
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 6 |
1 files changed, 3 insertions, 3 deletions
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 |