From caec973c18844b6edaf6ba62450867c7165e801f Mon Sep 17 00:00:00 2001 From: Noah Gorny Date: Tue, 17 Aug 2021 23:40:19 +0300 Subject: [PATCH] helpers: Pop pwd correctly when not needing to update --- lib/helpers.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/helpers.bash b/lib/helpers.bash index 34149040..31e3fec8 100755 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -243,6 +243,7 @@ _bash-it-update-() { if [[ -z "$TARGET" ]]; then echo "Can not find tags, so can not update to latest stable version..." + cd "${old_pwd}" &> /dev/null return fi else