Fix count script

This commit is contained in:
Sergi Àlvarez i Capilla 2021-06-09 21:31:30 +02:00 committed by pancake
parent 72ab4e83b3
commit f64c370585
1 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,6 @@
#!/bin/sh
[ -z "$TMPDIR" ] && TMPDIR=/tmp
[ -w "$TMPDIR" ] || TMPDIR="$PWD"
T=$TMPDIR/.cc.txt
if [ -n "$1" ]; then
echo 0 > $T 2> /dev/null