Merge pull request #5 from 3DPrintingGeek/fix/git-backup_kill_processes_on_remove

fixes process not killed on remove
This commit is contained in:
Cyril Guislain 2024-04-11 11:43:55 +02:00 committed by GitHub
commit a5e8a102e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,9 +60,11 @@ 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
rm -f "$INITD_FOLDER"/S52Git-Backup
rm -rf "$PRINTER_DATA_FOLDER"/.git
if grep -q "include Helper-Script/git-backup" "$PRINTER_CFG" ; then
echo -e "Info: Removing Git Backup configurations in printer.cfg file..."