2023-12-07 15:32:32 -05:00
|
|
|
# ------------------------------------------------------
|
|
|
|
# Copy dotfiles
|
|
|
|
# ------------------------------------------------------
|
|
|
|
if [ -f ~/dotfiles-versions/hook.sh ]; then
|
2023-12-25 08:45:11 -05:00
|
|
|
echo -e "${GREEN}"
|
2023-12-21 15:57:44 -05:00
|
|
|
figlet "Hook"
|
2023-12-25 08:45:11 -05:00
|
|
|
echo -e "${NONE}"
|
2023-12-07 15:32:32 -05:00
|
|
|
echo "The script has detected a hook.sh script."
|
|
|
|
if gum confirm "Do you want to run the script now?"; then
|
|
|
|
source ~/dotfiles-versions/hook.sh
|
|
|
|
echo "hook.sh executed!"
|
2024-01-01 05:40:15 -05:00
|
|
|
else
|
|
|
|
echo "Execution of hook.sh skipped."
|
2023-12-07 15:32:32 -05:00
|
|
|
fi
|
|
|
|
fi
|