Explorar o código

Create temp deb for _apt

bryan hai 3 días
pai
achega
9ede815548
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      installJRMC

+ 2 - 1
installJRMC

@@ -983,7 +983,8 @@ install_mc_deb() {
   # Copy the DEB to a temporary file so _apt can read it
   debug "Creating temporary deb file owned byq _apt"
   local temp_deb
-  temp_deb=$(mktemp)
+  temp_deb=$(mktemp --suffix=.deb)
+  execute cp "$MC_DEB" "$temp_deb"
   execute sudo cp "$MC_DEB" "$temp_deb"
   execute sudo chown _apt "$temp_deb"