You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/deployments/get-docker-names.sh
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,9 @@ DOCKER_COMPOSE_FILE=$1
9
9
WORKING_DIR="$(dirname "$1")"
10
10
EXCLUDED_CONTAINERS=$2
11
11
12
-
EXCLUSION_FILTER=$(echo "$EXCLUDED_CONTAINERS"| awk -v ORS='''{split($0, arr, ","); for (i in arr) printf ".container_name != \"%s\" and ", arr[i]} END {print "1"}')
12
+
EXCLUSION_FILTER=$(echo "${EXCLUDED_CONTAINERS}"| awk -v ORS='''{split($0, arr, ","); for (i in arr) printf ".container_name != \"%s\" and ", arr[i]} END {print "1"}')
13
13
14
-
cd"$WORKING_DIR"|| { echo"Directory not found: $WORKING_DIR";exit 1; }
14
+
cd"${WORKING_DIR}"|| { echo"Directory not found: ${WORKING_DIR}";exit 1; }
15
15
16
16
declare -A docker_functions_map=()
17
17
@@ -31,28 +31,28 @@ done
31
31
32
32
changed_functions=""
33
33
34
-
if [ -z"$CHANGED_FOLDERS" ];then
34
+
if [ -z"${CHANGED_FOLDERS}" ];then
35
35
changed_functions="null"
36
36
echo"No files changed"
37
-
elif [[ "$CHANGED_FOLDERS"=~(?i)Shared ]];then
37
+
elif [[ "${CHANGED_FOLDERS,,}"=~shared ]];then
38
38
echo"Shared folder changed, returning all functions"
0 commit comments