Skip to content

Commit 91dc25f

Browse files
committed
replaced sed with parameter expansion because of lint
1 parent 726db53 commit 91dc25f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build-workspace-product-part.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ jobs:
198198
199199
if [[ $product_version == *"SNAPSHOT"* ]]; then
200200
echo "replace SNAPSHOT in version with timestamp"
201-
product_version=$(echo "$product_version" | sed "s/SNAPSHOT/$(date +%Y%m%d-%H%M%S)/g")
201+
product_version="${product_version/SNAPSHOT/$(date +%Y%m%d-%H%M%S)}"
202202
echo "product_version=$product_version"
203203
fi
204204

0 commit comments

Comments
 (0)