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:
parent
3a59d525a9
commit
8270a4ffc5
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue