diff --git a/bash/bashrc/sources/41_pivot-command b/bash/bashrc/sources/41_pivot-command index c095c78..10559a4 100644 --- a/bash/bashrc/sources/41_pivot-command +++ b/bash/bashrc/sources/41_pivot-command @@ -29,6 +29,12 @@ function pvt() { ;; esac + if [[ -z "$ARG3" ]]; then + >&2 echo "Error: LAND_DIR is not defined" + pvt + return 1 + fi + IFS="/" read -a PWDA <<< "$(pwd)" # Begin finding dirs in up-stack