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