fix push_directory, pop_directory
This commit is contained in:
+2
-2
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user