From df0c4bfc16cc7403406515e0faac2de1e3d8e49c Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Fri, 18 Mar 2022 23:39:48 -0700 Subject: [PATCH] updates: add error handling to p10k update --- .config/shell/updates | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/shell/updates b/.config/shell/updates index e369dab..82ee678 100755 --- a/.config/shell/updates +++ b/.config/shell/updates @@ -5,5 +5,9 @@ # [3-18-22] Move Powerlevel 10k config file out of home directory 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