fix push_directory, pop_directory

This commit is contained in:
pvincent
2024-03-06 19:08:33 +04:00
parent f7230f2842
commit 6a03f03c26
+2 -2
View File
@@ -9,11 +9,11 @@ readonly MAIN_TAR_GZ_URL="https://git.artcode.re/miaou/miaou-bash/archive/main.t
## FUNCTIONS ## FUNCTIONS
function push_directory { 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 { 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 { function root_required {