Added confirmation showing what will be removed for -r.
This commit is contained in:
parent
731f1a6ad5
commit
316fc6a588
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user