Browse Source

Warn about missing createrepo on suse

bryan 3 năm trước cách đây
mục cha
commit
ba0be060d9
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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