forgot trap

This commit is contained in:
2022-09-30 11:59:34 +02:00
parent 89f862c5d8
commit ee4de3343d

View File

@@ -4,6 +4,8 @@ source functions.sh
pidfile=/var/run/backup_script
trap cleanup EXIT
function cleanup {
echo "bye bye"
test -f $pidfile && rm -f $pidfile