comparison scripts/exec-all-projects-docker.sh @ 592:e97aa313253e

add ess conditional
author Marc Davis <marc.davis@mcoecn.org>
date Tue, 17 Sep 2024 08:20:31 -0400
parents d75786228e6b
children 652e0b0552b1 b3ff6b33a9c5
comparison
equal deleted inserted replaced
589:c8ef1c6829dd 592:e97aa313253e
1 #!/bin/bash 1 #!/bin/bash
2 # Scans for standard SSDT docker projects in specified parent path and 2 # Scans for standard SSDT docker projects in specified parent path and
3 # executes the specified command. 3 # executes the specified command.
4 # 4 #
5 # The first parameter specifices the parent directory to search for. 5 # The first parameter specifies the parent directory to search for.
6 # 6 #
7 # The second parameter specifies the command to execute against each 7 # The second parameter specifies the command to execute against each
8 # SSDT standard docker project found under the parent directory. 8 # SSDT standard docker project found under the parent directory.
9 # 9 #
10 # examples: 10 # examples:
28 for f in $(find $PARENTDIR -type d -name .env) 28 for f in $(find $PARENTDIR -type d -name .env)
29 do 29 do
30 projectdir=`dirname $f` 30 projectdir=`dirname $f`
31 project=`basename $projectdir` 31 project=`basename $projectdir`
32 cd $projectdir 32 cd $projectdir
33 if ls .env/ssdt-*-shared.properties 1> /dev/null 2>&1; then 33 if ls .env/ssdt-*-shared.properties 1> /dev/null 2>&1 || ls .env/ess-shared.properties 1> /dev/null 2>&1; then
34 echo "projectdir is $projectdir" 34 echo "projectdir is $projectdir"
35 echo -e "----\n$executing $COMMAND on $project \n----" 35 echo -e "----\n$executing $COMMAND on $project \n----"
36 36
37 bash -c "${COMMAND}" 37 bash -c "${COMMAND}"
38 echo "" 38 echo ""