Improve error message for missing element.

Change-Id: I80beae77874e36d7f47880b030c225100b102e95
This commit is contained in:
Tim Miller 2013-01-30 16:07:02 -08:00
parent 11b4a5501d
commit 4688804bbc

View File

@ -39,7 +39,7 @@ function save_image () {
function generate_hooks () {
mkdir -p $TMP_HOOKS_PATH
for _ELEMENT in $IMAGE_ELEMENT ; do
[ -d $ELEMENTS_DIR/$_ELEMENT ] || die "The element does not exist." ;
[ -d $ELEMENTS_DIR/$_ELEMENT ] || die "Element $_ELEMENT does not exist." ;
cp -t $TMP_HOOKS_PATH -a $ELEMENTS_DIR/$_ELEMENT/* ;
done
}