瀏覽代碼

Don't invoke --install=repo on --uninstall

bryan 3 周之前
父節點
當前提交
381490c14c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      installJRMC

+ 2 - 2
installJRMC

@@ -18,7 +18,7 @@
 # * Be careful with tabs in heredocs
 shopt -s extglob
 
-declare -g SCRIPT_VERSION="1.4.7"
+declare -g SCRIPT_VERSION="1.4.8-dev"
 declare -g MC_REPO="bullseye" # should match the MC_VERSION
 declare -g MC_VERSION="33.0.61" # Do find all replace
 declare -g BOARD_URL="https://yabb.jriver.com/interact/index.php/board,86.0.html" # MC33
@@ -241,7 +241,7 @@ init() {
   fi
 
   # Parse input commands with getopt
-  if [[ $# -eq 0 || ! "$*" =~ (--install|--service|--container|--createrepo) ]]; then
+  if [[ $# -eq 0 || ! "$*" =~ (--install|--service|--container|--createrepo|--uninstall) ]]; then
     debug "Automatically using --install=repo"
     declare -gi REPO_INSTALL_SWITCH=1
   else