mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-30 16:40:57 +00:00
14 lines
234 B
Bash
Executable File
14 lines
234 B
Bash
Executable File
#!/bin/sh
|
|
[ -z "$TMPDIR" ] && TMPDIR=/tmp
|
|
[ -w "$TMPDIR" ] || TMPDIR="$PWD"
|
|
T=$TMPDIR/.cc.txt
|
|
if [ -n "$1" ]; then
|
|
echo 1 > "$T"
|
|
else
|
|
N=`cat $T 2> /dev/null`
|
|
N=$((1+$N))
|
|
basename `pwd`
|
|
echo "$N" | tee "$T" 2> /dev/null
|
|
fi
|
|
exit 0
|