Merge pull request #1269 from edubxb/fix-reload

Bash-it don't returns to the previous path after update
This commit is contained in:
Nils Winkler
2018-11-13 08:55:33 +01:00
committed by GitHub

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() {