mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-26 22:50:48 +00:00
lochist script now takes an argument with the commit to count
This commit is contained in:
parent
97761f8ef0
commit
c06d8362c7
16
sys/lochist
16
sys/lochist
@ -1,9 +1,17 @@
|
||||
#!/bin/sh
|
||||
TAGS=`git tag| grep -e '^\d\..\.' | grep -v '\d-'`
|
||||
if [ -n "$1" ]; then
|
||||
if [ "$1" = "-h" ]; then
|
||||
echo "Usage: "
|
||||
exit 0
|
||||
fi
|
||||
TAGS="$1"
|
||||
else
|
||||
TAGS=`git tag| grep -e '^\d\..\.' | grep -v '\d-'`
|
||||
fi
|
||||
control_c() {
|
||||
echo "^C"
|
||||
rm -rf r2loc
|
||||
exit 1
|
||||
echo "^C"
|
||||
rm -rf r2loc
|
||||
exit 1
|
||||
}
|
||||
trap control_c 2
|
||||
rm -rf r2loc
|
||||
|
Loading…
Reference in New Issue
Block a user