Ask for confirmation before uninstall
Prompt the user before removing oh-my-zsh from the system
This commit is contained in:
Родитель
f3fa41834d
Коммит
6b73f5ec75
|
@ -1,3 +1,10 @@
|
|||
read -r -p "Are you sure you want to remove Oh My Zsh? [y/N] " confirmation
|
||||
if ! [[ $confirmation =~ ^[yY]$ ]]
|
||||
then
|
||||
echo "Uninstall cancelled"
|
||||
exit
|
||||
fi
|
||||
|
||||
echo "Removing ~/.oh-my-zsh"
|
||||
if [ -d ~/.oh-my-zsh ]
|
||||
then
|
||||
|
|
Загрузка…
Ссылка в новой задаче