mv -n to not overwrite

This commit is contained in:
Joty
2018-04-14 17:02:20 +09:30
parent f6c16984ba
commit 0ec3f0eadc

View File

@@ -11,7 +11,7 @@ else
fi
if mv ~/.zshrc ~/.zshrc-backup; then # if already have zshrc-backup, keep it, don't overwrite
if mv -n ~/.zshrc ~/.zshrc-backup; then # if already have zshrc-backup, keep it, don't overwrite
echo -e "Backed up the current .zshrc to .zshrc-backup\n"
fi
@@ -63,7 +63,7 @@ fi
# source ~/.zshrc
echo -e "/nSudo access is needed to change default shell/n"
echo -e "\nSudo access is needed to change default shell\n"
if chsh -s $(which zsh) && /bin/zsh -i -c upgrade_oh_my_zsh; then
echo -e "Installation Successful, exit terminal and enter a new session"