Tools/scripts/rmport: also cleanup when being trapped on a signal

This should get rid of stale gitrmlist* and gitlog* files.
This commit is contained in:
Rene Ladan 2023-04-30 13:39:33 +02:00
parent 3a59d525a9
commit 8270a4ffc5

View file

@ -352,6 +352,8 @@ usage()
# main
trap cleanup 1 2 3 15
if [ ! -r ${INDEX} ] ; then
echo "${INDEX} not readable, exiting" >&2
exit 66
@ -471,7 +473,3 @@ while [ "${answer}" = "y" ] ; do
done
commit
cleanup
# EOF