diff scripts/exec-all-projects.sh @ 187:6b950e1a95e6

DEP-12: update exec script.
author smith@nwoca.org
date Wed, 20 Sep 2017 16:57:30 +0100
parents 620ea742f1df
children fea886ba7279
line wrap: on
line diff
--- a/scripts/exec-all-projects.sh	Wed Sep 20 16:52:37 2017 +0100
+++ b/scripts/exec-all-projects.sh	Wed Sep 20 16:57:30 2017 +0100
@@ -10,19 +10,22 @@
 ##
 
 : ${1?"Usage: {parent path} [command]"}
-COMMAND=${2:-*app}
 
 ORIGINALDIR=$PWD
 PARENTDIR=$1
 
+shift
+COMMAND=$@
+
 for f in $(find $PARENTDIR -name docker-compose.yml)
 do
    projectdir=`dirname $f`
    project=`basename $projectdir`
    cd $projectdir
-   echo -e "----\n$executing $COMMAND on $project"      
+   echo -e "----\n$executing $COMMAND on $project \n----"      
    
-   bash -c ${COMMAND}
+   bash -c "${COMMAND}"
+   echo ""
    
 done