diff --git a/libr/count.sh b/libr/count.sh index 262a1a464a..8e2c56f431 100755 --- a/libr/count.sh +++ b/libr/count.sh @@ -1,10 +1,12 @@ #!/bin/sh +T=$TMPDIR/.cc.txt if [ -n "$1" ]; then - echo 0 > /tmp/.cc.txt + echo 0 > $T 2> /dev/null N=0 else - N=`cat /tmp/.cc.txt 2> /dev/null` + N=`cat $T 2> /dev/null` fi N=$(($N+1)) basename `pwd` -echo $N | tee /tmp/.cc.txt +echo $N | tee $T 2> /dev/null +exit 0