소스 검색

Replace buildah copy with mount

bryan 3 일 전
부모
커밋
77b6b8de30
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      installJRMC

+ 1 - 1
installJRMC

@@ -775,7 +775,7 @@ acquire_deb_new() {
     sudo buildah run "$CNT" -- sh -c "
       apt-get download --quiet --allow-unauthenticated mediacenter$MC_MVERSION" &&
     mnt="$(sudo buildah mount "$CNT")"
-    sudo cp "$mnt"/*.deb "$MC_DEB" &&
+    sudo find "$mnt" -maxdepth 1 -type f -name "*.deb" -exec cp {} "$MC_DEB" \;
     sudo buildah umount "$CNT" &&
     sudo buildah rm "$CNT"