diff --git a/.install/post-version-hook.sh b/.install/post-version-hook.sh index 92eedef..5419879 100755 --- a/.install/post-version-hook.sh +++ b/.install/post-version-hook.sh @@ -1,13 +1,13 @@ # ------------------------------------------------------ # Copy dotfiles # ------------------------------------------------------ -if [ -f ~/dotfiles-versions/post-version-hook.sh ]; then +if [ -f ~/dotfiles-versions/$version/post-version-hook.sh ]; then echo -e "${GREEN}" figlet "Post Version Hook" echo -e "${NONE}" echo ":: The script has detected a post-version-hook.sh script." if gum confirm "Do you want to run the script now?"; then - source ~/dotfiles-versions/post-version-hook.sh + source ~/dotfiles-versions/$version/post-version-hook.sh echo ":: post-version-hook.sh executed!" else echo ":: Execution of post-version-hook.sh skipped." diff --git a/.install/pre-version-hook.sh b/.install/pre-version-hook.sh index 4277cab..13a8f74 100755 --- a/.install/pre-version-hook.sh +++ b/.install/pre-version-hook.sh @@ -1,13 +1,13 @@ # ------------------------------------------------------ # Copy dotfiles # ------------------------------------------------------ -if [ -f ~/dotfiles-versions/pre-version-hook.sh ]; then +if [ -f ~/dotfiles-versions/$version/pre-version-hook.sh ]; then echo -e "${GREEN}" figlet "Pre Version Hook" echo -e "${NONE}" echo ":: The script has detected a pre-version-hook.sh script." if gum confirm "Do you want to run the script now?"; then - source ~/dotfiles-versions/pre-version-hook.sh + source ~/dotfiles-versions/$version/pre-version-hook.sh echo ":: pre-version-hook.sh executed!" else echo ":: Execution of pre-version-hook.sh skipped." diff --git a/.install/version-hook.sh b/.install/version-hook.sh index e28175a..963c72e 100755 --- a/.install/version-hook.sh +++ b/.install/version-hook.sh @@ -1,13 +1,13 @@ # ------------------------------------------------------ # Copy dotfiles # ------------------------------------------------------ -if [ -f ~/dotfiles-versions/version-hook.sh ]; then +if [ -f ~/dotfiles-versions/$version/version-hook.sh ]; then echo -e "${GREEN}" figlet "Version Hook" echo -e "${NONE}" echo ":: The script has detected a version-hook.sh script." if gum confirm "Do you want to run the script now?"; then - source ~/dotfiles-versions/version-hook.sh + source ~/dotfiles-versions/$version/version-hook.sh echo ":: version-hook.sh executed!" else echo ":: Execution of version-hook.sh skipped."