Skip to content

Commit 0382ab0

Browse files
arampriceystros
authored andcommitted
CI: also strip " from values
The code which tags AMIs extracts version information from the stemcell manifest `stemcell.MF` which has contained single quotes `'`, and which can also (and now does) contain double quotes `"` to distinguish YAML (numeric) strings from numbers. This commit adds code to _also_ strip out double quotes. Signed-off-by: Brian Upton <[email protected]>
1 parent fc1eca3 commit 0382ab0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/tasks/aws-tag-image/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if [ -n "${GREP_PATTERN}" ]; then
2121
AMI_LIST=$(echo "${AMI_LIST}" | eval "${GREP_PATTERN}")
2222
fi
2323
OS=$(grep "operating_system" stemcell.MF | cut -f2 -d: | tr -d ' ')
24-
VERSION=$(grep "^version" stemcell.MF | cut -f2 -d: | tr -d ' ' | tr -d "'")
24+
VERSION=$(grep "^version" stemcell.MF | cut -f2 -d: | tr -d ' ' | tr -d "'" | tr -d '"')
2525

2626
for AMI_LINE in ${AMI_LIST}; do
2727
AMI_REGION=$(echo "${AMI_LINE}" | cut -f1 -d:)

0 commit comments

Comments
 (0)