aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r--sysconfig/network-scripts/network-functions6
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