Wine: install box86 with manage's install-if-not-install

pull/910/head
Botspot 3 years ago
parent 499e77947e
commit a6c7b4ab8f

@ -134,15 +134,7 @@ fi
#Past this point, the pi is running a Wine-compatible kernel.
#install box86
if ! command -v box86 || [ "$(cat "${DIRECTORY}/data/status/Box86" 2>/dev/null)" != 'installed' ];then
echo 'Installing box86...'
"${DIRECTORY}/manage" install Box86 || error "Box86 failed to install somehow!"
if ! command -v box86 ;then
error "Box86 executable does not exist!"
else
echo "installed" > "${DIRECTORY}/data/status/Box86"
fi
fi
"${DIRECTORY}/manage" install-if-not-installed Box86 || error "Box86 failed to install somehow!"
pkill -9 wine
sudo apt purge -y wine &>/dev/null &

Loading…
Cancel
Save