瀏覽代碼

Warn about missing createrepo on suse

bryan 3 年之前
父節點
當前提交
ba0be060d9
共有 1 個文件被更改,包括 4 次插入1 次删除
  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