From b3e08925f9e81102dee13c4ec37bc847f328fff2 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Sun, 31 Jan 2016 15:01:21 +0700 Subject: [PATCH] fix: check charm existence. --- bin/compose | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/compose b/bin/compose index 06d4a08..4a7dbe2 100755 --- a/bin/compose +++ b/bin/compose @@ -1409,6 +1409,9 @@ get_charm_metadata() { return 0 ## No metadata file is as if metadata was empty fi + if ! [ -d "$CHARM_STORE/$charm" ]; then + die "No charm $charm was found in charm store." + fi cat "$metadata_file" } export -f get_charm_metadata