Parcourir la source

Fix uninstall

bryan il y a 3 ans
Parent
commit
3dfbf13ae1
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      installJRMC

+ 1 - 2
installJRMC

@@ -1415,8 +1415,7 @@ uninstall() {
             fi
         done
         for f in "$_service_fname" "$_timer_fname"; do
-            debug "Removing $f"
-            rm_cmd "$f"
+            [[ -f "$f" ]] && debug "Removing $f" && rm_cmd "$f"
         done
         systemctl_reload
     done