helpers: Pop pwd correctly when not needing to update

This commit is contained in:
Noah Gorny
2021-08-17 23:40:19 +03:00
parent 9cc36de58e
commit caec973c18

View File

@@ -243,6 +243,7 @@ _bash-it-update-() {
if [[ -z "$TARGET" ]]; then if [[ -z "$TARGET" ]]; then
echo "Can not find tags, so can not update to latest stable version..." echo "Can not find tags, so can not update to latest stable version..."
cd "${old_pwd}" &> /dev/null
return return
fi fi
else else