Selaa lähdekoodia

Fix uninstall

bryan 3 vuotta sitten
vanhempi
commit
3dfbf13ae1
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  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