comparison scripts/exec-all-projects-docker.sh @ 539:5d5525414c8d production

update exec-all-projects-docker.sh to search for ./env/*-shared.properties in place of ./env/ssdt-*-shared.properties. ESS doesn't follow the same pattern for property file names.
author Marc Davis <marc.davis@mcoecn.org>
date Mon, 13 May 2024 13:28:30 -0400
parents d75786228e6b
children
comparison
equal deleted inserted replaced
538:e849a863687a 539:5d5525414c8d
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/*-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 ""