Add reboot request if stow fails to install

This commit is contained in:
2024-03-25 13:27:56 +00:00
parent 2842d2db65
commit 73f8cd4794

View File

@@ -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