make shell math operations style more succulent
Convert the style: var=$((${var} + 1)) to: : $(( var += 1 )) The latter is easier to read imo. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
@@ -49,7 +49,7 @@ start()
|
||||
retval=1
|
||||
break
|
||||
fi
|
||||
x=$(($x + 1))
|
||||
: $(( x += 1 ))
|
||||
done
|
||||
eend $retval
|
||||
|
||||
|
Reference in New Issue
Block a user