diff --git a/apps/QEMU/install-32 b/apps/QEMU/install-32 index 5a9172a..0c82242 100755 --- a/apps/QEMU/install-32 +++ b/apps/QEMU/install-32 @@ -8,15 +8,12 @@ function error { } #Remove any qemu packages first to prevent conflicting packages -sudo apt purge -y qemu* - -cd $HOME -#remove deb if present -rm -f ./qemu*-armhf.deb +sudo apt purge -yqq qemu* &>/dev/null +rm -f ~/qemu.deb #Download QEMU -wget https://github.com/chunky-milk/qemu-arm-builds/releases/download/6.0.50/qemu-6.0.50-armhf.deb || error 'Failed to Download QEMU!' +wget -O ~/qemu.deb https://github.com/chunky-milk/qemu-arm-builds/releases/download/6.0.50/qemu-6.0.50-armhf.deb || error 'Failed to Download QEMU!' #Install QEMU -"${DIRECTORY}/pkg-install" "$(pwd)/qemu-6.0.50-armhf.deb" "$(dirname "$0")" || error 'Failed to install QEMU!' -rm -f qemu*-armhf.deb +"${DIRECTORY}/pkg-install" "$HOME/qemu.deb" "$(dirname "$0")" || error 'Failed to install qemu.deb!' +rm -f ~/qemu.deb diff --git a/apps/QEMU/install-64 b/apps/QEMU/install-64 index 2497639..c363cc7 100755 --- a/apps/QEMU/install-64 +++ b/apps/QEMU/install-64 @@ -8,13 +8,12 @@ function error { } #Remove any qemu packages first to prevent conflicting packages -sudo apt purge -y qemu* +sudo apt purge -yqq qemu* &>/dev/null -cd $HOME -#remove deb is exists -rm -f ./qemu*arm64.deb +rm -f ~/qemu.deb #Download QEMU -wget https://github.com/chunky-milk/qemu-arm-builds/releases/download/6.0.50/qemu-6.0.50-arm64.deb || error 'Failed to Download QEMU!' +wget -O ~/qemu.deb https://github.com/chunky-milk/qemu-arm-builds/releases/download/6.0.50/qemu-6.0.50-arm64.deb || error 'Failed to Download QEMU!' + #Install QEMU -sudo apt install -fy ./qemu-6.0.50-arm64.deb || error 'Failed to install QEMU!' -rm -f qemu-6.0.50-arm64.deb +"${DIRECTORY}/pkg-install" "$HOME/qemu.deb" "$(dirname "$0")" || error 'Failed to install qemu.deb!' +rm -f ~/qemu.deb