Improve error message for missing element.
Change-Id: I80beae77874e36d7f47880b030c225100b102e95
This commit is contained in:
parent
11b4a5501d
commit
4688804bbc
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user