~mdw
/
misc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hush.in: Use `$' prefixes on variables in arithmetic expansions.
[misc]
/
hush.in
diff --git
a/hush.in
b/hush.in
index
d5aebcb
..
2752cdf
100755
(executable)
--- a/
hush.in
+++ b/
hush.in
@@
-167,16
+167,16
@@
exec 3>&-
nlog=0
for i in "$logdir/$tag".*; do
if [ ! -f "$i" ]; then continue; fi
nlog=0
for i in "$logdir/$tag".*; do
if [ ! -f "$i" ]; then continue; fi
- nlog=$(( nlog + 1 ))
+ nlog=$((
$
nlog + 1 ))
done
## If there are too many, go through and delete some early ones.
if [ $nlog -gt $maxlog ]; then
done
## If there are too many, go through and delete some early ones.
if [ $nlog -gt $maxlog ]; then
- n=$((
nlog -
maxlog ))
+ n=$((
$nlog - $
maxlog ))
for i in "$logdir/$tag".*; do
if [ ! -f "$i" ]; then continue; fi
rm -f "$i"
for i in "$logdir/$tag".*; do
if [ ! -f "$i" ]; then continue; fi
rm -f "$i"
- n=$(( n - 1 ))
+ n=$((
$
n - 1 ))
if [ $n -eq 0 ]; then break; fi
done
fi
if [ $n -eq 0 ]; then break; fi
done
fi