Fixed misbehavior in pid file

This commit is contained in:
toloveru 2017-04-11 01:29:35 +02:00
parent e5030f489a
commit 55cb6738ad

View File

@ -88,6 +88,7 @@ then
/usr/local/sbin/notify_all "Kernel update tracker" "New kernel installed\!" --icon=dialog-information
elif [[ "$latest" == "$current" ]] && [[ ! -z $latest ]]
then
rm /tmp/kernelcheck.pid
exit 0
elif [[ -z $latest ]]
then
@ -103,4 +104,4 @@ else
exit 1
fi
rm /tmp/kernelcheck.pid
rm /tmp/kernelcheck.pid