Skip to content

Commit

Permalink
Move final message from update script to very end
Browse files Browse the repository at this point in the history
  • Loading branch information
lfdebrux committed Aug 2, 2022
1 parent cd9e5f2 commit 6c3e79b
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,16 @@ copy () {

trap - ERR

update_gitignore
}

post () {
if [ -f "update/lib/_update/post.js" ]; then
node "update/lib/_update/post"
fi
}

finish () {
msg
msg "Your prototype kit files have now been updated, from version ${OLD_VERSION} to ${NEW_VERSION}."
msg 'If you need to make configuration changes, follow the steps at'
Expand All @@ -180,12 +190,6 @@ copy () {
update_gitignore
}

post () {
if [ -f "update/lib/_update/post.js" ]; then
node "update/lib/_update/post"
fi
}

if [ "$0" == "${BASH_SOURCE:-$0}" ]
then
check
Expand All @@ -194,4 +198,5 @@ then
extract
copy
post
finish
fi

0 comments on commit 6c3e79b

Please sign in to comment.