From 6a03f03c2611a9f3bfc3b105b240be2a5b03b00a Mon Sep 17 00:00:00 2001 From: pvincent Date: Wed, 6 Mar 2024 19:08:33 +0400 Subject: [PATCH] fix push_directory, pop_directory --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 2f12d16..43e831b 100755 --- a/install.sh +++ b/install.sh @@ -9,11 +9,11 @@ readonly MAIN_TAR_GZ_URL="https://git.artcode.re/miaou/miaou-bash/archive/main.t ## FUNCTIONS function push_directory { - pushd "$1" || echo "unable to push directory <$1>" && exit 1 + pushd "$1" || (echo "unable to push directory <$1>" && exit 1) } function pop_directory { - popd || echo "unable to pop from previous directory" && exit 1 + popd || (echo "unable to pop from previous directory" && exit 1) } function root_required {