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:
@@ -31,7 +31,7 @@ start()
|
||||
n=1
|
||||
while [ ${n} -le "$ttyn" ]; do
|
||||
printf "\033%s" "$termencoding" >$ttydev$n
|
||||
n=$(($n + 1))
|
||||
: $(( n += 1 ))
|
||||
done
|
||||
|
||||
# Save the encoding for use immediately at boot
|
||||
|
||||
Reference in New Issue
Block a user