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 <>
Reviewed-by: default avatarKlaus Aehlig <>
Reviewed-by: default avatarGuido Trotter <>
parent 9524c4c4
......@@ -34,6 +34,16 @@ then
if [ ! -d $DATA_DIR ]
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."
set -e
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