updates: add error handling to p10k update

This commit is contained in:
PowerUser64 2022-03-18 23:39:48 -07:00
parent fadea71978
commit df0c4bfc16

View file

@ -5,5 +5,9 @@
# [3-18-22] Move Powerlevel 10k config file out of home directory # [3-18-22] Move Powerlevel 10k config file out of home directory
if [ -f ~/.p10k.zsh ] && ! [ -f "$P10K_CONFIG_LOCATION" ]; then if [ -f ~/.p10k.zsh ] && ! [ -f "$P10K_CONFIG_LOCATION" ]; then
mv ~/.p10k.zsh "$P10K_CONFIG_LOCATION" if mv ~/.p10k.zsh "$P10K_CONFIG_LOCATION"; then
echo "Update: Powerlevel 10k config file moved to $P10K_CONFIG_LOCATION"
else
echo "Update: Error: failed to move Powerlevel 10k config file to $P10K_CONFIG_LOCATION"
fi
fi fi