Explorar o código

Fix uninstall

bryan %!s(int64=3) %!d(string=hai) anos
pai
achega
3dfbf13ae1
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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