Commit 85b66af5 authored by Michele Tartara's avatar Michele Tartara
Browse files

build_chroot: check whether the data dir exists



If the data directory is not in the expected place, the script complains
with an error message and stops, instead of giving obscure messages.

Partially fixes Issue 459.
Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent 9524c4c4
......@@ -34,6 +34,16 @@ then
exit
fi
if [ ! -d $DATA_DIR ]
then
echo "The data directory"
echo " $DATA_DIR"
echo "does not exist."
echo "Please, set the DATA_DIR environment variable so that it points to the"
echo "data directory."
exit
fi
set -e
#Cleanup
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment