Merge "Exit with error if DIB output dir doesn't exist"

This commit is contained in:
Zuul 2019-01-18 20:15:16 +00:00 committed by Gerrit Code Review
commit 6786235f02
1 changed files with 5 additions and 0 deletions

View File

@ -138,6 +138,11 @@ while getopts "a:b:c:d:ehi:l:no:pt:r:s:vw:x" opt; do
;;
o)
AMP_OUTPUTFILENAME=$(readlink -f $OPTARG)
amp_dir=$(dirname $AMP_OUTPUTFILENAME)
if [ ! -d $amp_dir ]; then
echo "Error: Directory $amp_dir does not exist"
exit 3
fi
;;
p)
AMP_PACKAGE_INSTALL=1