Arg fool proof

This commit is contained in:
斟酌 鵬兄 2015-01-14 10:45:04 +08:00
parent 8f7aed51bb
commit 055a7ef6a9

View File

@ -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