Skip to content

Commit

Permalink
Fix sed of version replacement in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisjbell committed Oct 8, 2024
1 parent 216d0f5 commit 10da5ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/package
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ build_dir="${work_dir}/stratos-ui"
# prebuild ui
cd stratos-ui
if [[ -n "${stratos_version:-""}" ]]; then
sed -i package.json -e 's/"version": .*/"version": "'"$stratos_version"'"/'
sed -i package.json -e 's/"version": ".*",$/"version": "'"$stratos_version"'",/'
fi
npm install
npm run prebuild-ui
Expand Down

0 comments on commit 10da5ee

Please sign in to comment.