Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
6b73f5ec
Commit
6b73f5ec
authored
Oct 05, 2015
by
Rodrigo Chiossi
Browse files
Ask for confirmation before uninstall
Prompt the user before removing oh-my-zsh from the system
parent
f3fa4183
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/uninstall.sh
View file @
6b73f5ec
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment