]> git.cameronkatri.com Git - pw-darwin.git/commitdiff
expr foo -> $((foo))
authorMax Khon <fjoe@FreeBSD.org>
Thu, 23 Jan 2003 20:18:21 +0000 (20:18 +0000)
committerMax Khon <fjoe@FreeBSD.org>
Thu, 23 Jan 2003 20:18:21 +0000 (20:18 +0000)
adduser/rmuser.sh

index 445b9747f1744f5d47364ab30535c82af24ea60c..ee78dcb4986413d12c9e29a2c41eafde4a88a9bd 100644 (file)
@@ -95,7 +95,7 @@ kill_procs() {
        proclist=`ps 2>/dev/null -U $login | grep -v '^\ *PID' | awk '{print $1}'`
        for _pid in $proclist ; do
                kill 2>/dev/null ${SIGKILL} $_pid
-               killcount=`expr $killcount + 1`
+               killcount=$(($killcount + 1))
        done
        echo " ${SIGKILL} signal sent to $killcount processes."
 }
@@ -112,7 +112,7 @@ rm_at_jobs() {
        echo -n "Removing at(1) jobs owned by ($login):"
        for _atjob in $atjoblist ; do
                rm -f $_atjob
-               jobcount=`expr $jobcount + 1`
+               jobcount=$(($jobcount + 1))
        done
        echo " $jobcount removed."
 }