commit 055a7ef6a9d668d4c82e7542526474d18bb63987
| author | 斟酌 鵬兄 <tgckpg@gmail.com> |
| date | 2015-01-14T02:45:04Z |
| subject | Arg fool proof |
commit 055a7ef6a9d668d4c82e7542526474d18bb63987
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date: 2015-01-14T02:45:04Z
Arg fool proof
---
bash/bashrc/sources/41_pivot-command | 6 ++++++
1 file changed, 6 insertions(+)
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