Run migrate command after a succesful update
parent
f221f63d7d
commit
732b287a57
|
|
@ -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."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue