Merge "Exit with error if DIB output dir doesn't exist"
This commit is contained in:
commit
6786235f02
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user