Aim to fix the Termux build

This commit is contained in:
Sergi Àlvarez i Capilla 2021-06-04 18:02:07 +02:00
parent 760ba0b557
commit b8bc7d700a

View File

@ -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