Print a nice error message when fetching dev bundle if no DATA_DIR set

This commit is contained in:
Emily Stark
2013-05-22 11:40:52 -07:00
parent 9d72fb5b86
commit 4ecd7c32b4

View File

@@ -1,6 +1,11 @@
set -e
trap "echo Failed to fetch binary dependencies." EXIT
if [ -z "$DATA_DIR" ]; then
echo "Please set DATA_DIR to a writeable directory."
exit 1
fi
cd `dirname $0`
# XXX don't hardcode linux :)