Browse Source

fix: check charm existence.

raw-remaining-args
Valentin Lab 9 years ago
parent
commit
b3e08925f9
  1. 3
      bin/compose

3
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

Loading…
Cancel
Save