浏览代码

Clobber repo files (more automatic)

bryan 23 小时之前
父节点
当前提交
ce2b1e70c6
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      installJRMC

+ 2 - 3
installJRMC

@@ -672,9 +672,8 @@ install_mc_repo() {
       ;;
   esac
 
-  if [[ -f $repo_file ]]; then
-    ask_ok "Replace existing $repo_file repository file" && execute sudo rm -f "$repo_file" 
-  fi
+  # Remove existing repository file if it exists
+  [[ -f $repo_file ]] && execute sudo rm -f "$repo_file" 
 
   echo "Adding MC repository file: $repo_file"
   debug "$repo_text"