瀏覽代碼

Don't specify suite

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

+ 2 - 2
installJRMC

@@ -716,7 +716,7 @@ acquire_deb() {
   fi
   fi
 
 
   # Download the deb file using the containerized package manager
   # Download the deb file using the containerized package manager
-  if ! { create_mc_apt_container "apt-get -t $MC_REPO download --allow-unauthenticated mediacenter$MC_MVERSION &>/dev/null" &&
+  if ! { create_mc_apt_container "apt-get download --allow-unauthenticated mediacenter$MC_MVERSION &>/dev/null" &&
   mnt="$(sudo buildah mount "$CNT")" &&
   mnt="$(sudo buildah mount "$CNT")" &&
   execute sudo find "$mnt" -maxdepth 1 -type f -name "*.deb" -exec cp {} "$MC_DEB" \; &&
   execute sudo find "$mnt" -maxdepth 1 -type f -name "*.deb" -exec cp {} "$MC_DEB" \; &&
   [[ -f $MC_DEB ]] &&
   [[ -f $MC_DEB ]] &&
@@ -1857,7 +1857,7 @@ create_mc_apt_container() {
     apt-get update &>/dev/null' &&
     apt-get update &>/dev/null' &&
   # If user passes command strings run them in the container
   # If user passes command strings run them in the container
   for cmd in "${cmds[@]}"; do
   for cmd in "${cmds[@]}"; do
-    sudo buildah run "$CNT" -- sh -c "$cmd"
+    sudo buildah run "$CNT" -- sh -c "$cmd" || { err "$cmd failed"; return 1; }
   done
   done
 }
 }