Added confirmation showing what will be removed for -r.

This commit is contained in:
Storm Dragon 2021-06-15 19:07:07 -04:00
parent 731f1a6ad5
commit 316fc6a588

View File

@ -465,6 +465,8 @@ game_removal() {
local wineExec="${game#*|}" local wineExec="${game#*|}"
wineExec="${wineExec%|*}" wineExec="${wineExec%|*}"
wineExec="${wineExec##*\\}" wineExec="${wineExec##*\\}"
# Confirm removal
read -rp "To remove the wine bottle ${game%|*} and all of its contents press enter. To cancel press control+c. " continue
# kill any previous existing wineservers for this prefix in case they didn't shut down properly. # kill any previous existing wineservers for this prefix in case they didn't shut down properly.
WINEPREFIX="${HOME}/.local/wine/${game%|*}" wineserver -k WINEPREFIX="${HOME}/.local/wine/${game%|*}" wineserver -k
# remove the game # remove the game