浏览代码

Set default behavior

bryan 5 年之前
父节点
当前提交
d45d35d815
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      installJRMC

+ 6 - 0
installJRMC

@@ -109,6 +109,12 @@ EOF
 
         _runDebug "${FUNCNAME[0]}"
 
+        # set default behavior
+        if [[ $# == 0 ]]; then
+            _repoinstall="true"
+            return 1
+        fi
+
         if _input=$(getopt -o +vdhus:c: -l install-repo,install-rpmbuild,rpmbuild,outputdir:,mcversion:,restorefile:,betapass:,service:,version,debug,force,help,uninstall,createrepo,createrepo-webroot:,createrepo-user:,vncpass:,display:,container: -- "$@"); then
             eval set -- "$_input"
             while true; do