}
function mass-create-container() {
- containerNameList=$(grep $@ $DATABASE | cut -d ";" -f 3 | awk '{printf $1" "}');
+ if echo $1 | grep -q '\,'; then
+ containerNameList=$(echo $1 | sed 's/,/ /g');
+ else
+ containerNameList=$(grep $@ $DATABASE | cut -d ";" -f 3 | awk '{printf $1" "}');
+ fi
for contName in $containerNameList; do
create-container $contName;
done
mass-create-container $rpmGrepOpts;
elif [ "$1" = "--other" ]; then
mass-create-container $otherGrepOpts;
+ elif echo $1 | grep -q '\,'; then
+ mass-create-container $1;
else
contName=$1;
create-container $contName;