Run migrate command after a succesful update

pull/974/head
Nils Winkler 2017-05-31 17:41:56 +02:00
parent f221f63d7d
commit 732b287a57
1 changed files with 6 additions and 1 deletions

View File

@ -145,7 +145,12 @@ _bash-it_update() {
if [[ -n "${status}" ]]; then if [[ -n "${status}" ]]; then
git pull --rebase &> /dev/null git pull --rebase &> /dev/null
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
echo "Bash-it successfully updated, enjoy!" echo "Bash-it successfully updated."
echo ""
echo "Migrating your installation to the latest version now..."
_bash-it-migrate
echo ""
echo "All done, enjoy!"
reload reload
else else
echo "Error updating Bash-it, please, check if your Bash-it installation folder (${BASH_IT}) is clean." echo "Error updating Bash-it, please, check if your Bash-it installation folder (${BASH_IT}) is clean."