Commit fb12a4ac authored by Tushar Shah's avatar Tushar Shah

CircleCI didn't like the << in my last script, switching to string literal

parent 27009c13
...@@ -1243,7 +1243,7 @@ jobs: ...@@ -1243,7 +1243,7 @@ jobs:
- run: - run:
name: Filter comments and match only 1 script name: Filter comments and match only 1 script
command: | command: |
SCRIPT=$(cat <<'EOF' AWK_SCRIPT='
BEGIN { in_comment = 0; matches = 0; } BEGIN { in_comment = 0; matches = 0; }
/^ *\/\*/ { in_comment = 1; } /^ *\/\*/ { in_comment = 1; }
in_comment && /\*\// { in_comment = 0; next; } in_comment && /\*\// { in_comment = 0; next; }
...@@ -1258,10 +1258,8 @@ jobs: ...@@ -1258,10 +1258,8 @@ jobs:
print "No matches found. Exiting."; print "No matches found. Exiting.";
exit 1; exit 1;
} }
} }'
EOF echo "export SCRIPT=$AWK_SCRIPT" >> $BASH_ENV
)
echo "export SCRIPT=$SCRIPT" >> $BASH_ENV
- run: - run:
name: Extract value from file1 name: Extract value from file1
command: | command: |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment