fixes process not killed on remove

When removing git-backup using the installer, there are still some processes left running in the background.
To ensure a clean removal, and prevent problems on reinstallation, these processes should be killed on removal.
This commit is contained in:
3DPrintingGeek 2024-04-11 10:19:45 +02:00 committed by GitHub
parent 39785f0e0f
commit 0083c60544
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,6 +60,8 @@ function remove_git_backup(){
case "${yn}" in
Y|y)
echo -e "${white}"
echo -e "Info: Stopping processes..."
pkill git-backup.sh
echo -e "Info: Removing files..."
rm -f "$HS_CONFIG_FOLDER"/git-backup.cfg
rm -f "INITD_FOLDER"/S52Git-Backup