Merge pull request #1269 from edubxb/fix-reload

Bash-it don't returns to the previous path after update
pull/1271/head
Nils Winkler 2018-11-13 08:55:33 +01:00 committed by GitHub
commit a0c078ddde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -167,6 +167,8 @@ _bash-it_update() {
_about 'updates Bash-it'
_group 'lib'
local old_pwd="${PWD}"
cd "${BASH_IT}" || return
if [ -z $BASH_IT_REMOTE ]; then
@ -194,7 +196,7 @@ _bash-it_update() {
else
echo "Bash-it is up to date, nothing to do!"
fi
cd - &> /dev/null || return
cd "${old_pwd}" &> /dev/null || return
}
_bash-it-migrate() {