From 73f8cd479409f0a94f9a08d89d345bf03cea0add Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Mon, 25 Mar 2024 13:27:56 +0000 Subject: [PATCH] Add reboot request if stow fails to install --- install.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 6d761df2..fb54590f 100755 --- a/install.sh +++ b/install.sh @@ -13,7 +13,10 @@ elif [[ $d == "Arch" ]]; then fi p i stow - -# Link dotfile home to $HOME -echo -e "${GREEN}[+] Symlinking dotfiles...${ENDCOLOR}" -stow -v -t $HOME home --adopt +if [[ $? == 0 ]]; then + # Link dotfile home to $HOME + echo -e "${GREEN}[+] Symlinking dotfiles...${ENDCOLOR}" + stow -v -t $HOME home --adopt +else + echo -e "${YELLOW}[E] Installation not finished. Reboot your system and run the script again.${ENDCOLOR}" +fi