CCM NG: Build helper script: Subcommand 'run' now checks for empty bundle name.

git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@4616 8810af33-2d31-482b-a856-94f89814c4df
jensp 2017-03-03 09:04:08 +00:00
parent ab672d1890
commit 2584311312
1 changed files with 7 additions and 1 deletions

8
ccm.sh
View File

@ -409,6 +409,12 @@ run() {
exit 1
fi
else
if [[ -z $bundle ]]; then
echo "No bundle specificed. Please specifiy a bundle."
echo "Usage: ccm.sh run BUNDLE"
exit 1
fi
echo "Running bundle $bundle..."
if [[ $bundle=~^.*-wildfly$ ]]; then
find_wildfly_home
@ -421,7 +427,7 @@ run() {
elif [[ $bundle=~^.*-tomee$ ]]; then
echo "Not implemented yet"
exit 0
else
else
echo -e "\e[41mThe bundle '$bundle' has an unknown suffix. Are you sure that you specified a valid bundle?\e[0m"
fi
fi