Explorar o código

Warn about missing createrepo on suse

bryan %!s(int64=3) %!d(string=hai) anos
pai
achega
ba0be060d9
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      installJRMC

+ 4 - 1
installJRMC

@@ -1558,8 +1558,11 @@ main() {
     fi
 
     if (( CREATEREPO_SWITCH )); then
+        if [[ "$ID" == "suse" ]]; then
+            err "createrepo is not available on SUSE"
+            exit 1
+        fi
         runCreaterepo
-        exit $?
     fi
 
     if [[ "${#SERVICES[@]}" -gt 0 ]]; then