Skip to content

Commit 26b835a

Browse files
author
Greg Bowler
committed
debug: compare docker/host env
1 parent b0a5041 commit 26b835a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

composer-action.bash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ echo "KEYS NOT IN DOCKER:"
146146

147147
while IFS= read -r line
148148
do
149-
if [[ " ${envHostKeys[@]} " =~ " ${line} " ]]
150-
then
151-
echo $line
149+
key=$(echo "$line" | cut -f1 -d=)
150+
if printf '%s\n' "${envHostKeys[@]}" | grep -q -P "^${key}\$"; then
151+
echo "$line"
152152
fi
153153
done <<<$(docker run --rm "${docker_tag}" env)
154154

0 commit comments

Comments
 (0)