Correct bash script typo. Include sed command in the docker image

This commit is contained in:
aboyko
2023-02-01 19:35:56 -05:00
parent 5270b9ca34
commit 3175d5d3c2
2 changed files with 2 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ RUN apt-get update && apt-get install -y \
gettext-base \
git \
jq \
sed \
ca-certificates-java \
ca-certificates \
openjdk-17-jdk \

View File

@@ -27,7 +27,7 @@ if [ "$dist_type" = release ]; then
else
if [ "$dist_type" = pre ]; then
# for pre-release build, work the timestamp into package.json patch version (
qualified_version = `echo $base_version | sed "s/\([0-9]\{1,\}.[0-9]\{1,\}.\)[0-9]\{1,\}/\1$timestamp/"`
qualified_version=`echo $base_version | sed "s/\([0-9]\{1,\}.[0-9]\{1,\}.\)[0-9]\{1,\}/\1$timestamp/"`
npm version ${qualified_version}
echo -e "\n\n*Version: ${base_version}-PRE-RELEASE*" >> README.md
else