diff --git a/Dockerfile b/Dockerfile index 309493e3a..512d6f771 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ ARG VERSION ENV VERSION=$VERSION ADD . /data RUN --mount=type=cache,target=/usr/local/share/.cache/yarn,sharing=locked,id=lina \ - sed -i "s@ version-dev @ ${VERSION} @g" src/layout/components/NavHeader/About.vue \ + sed -i "s@version-dev@${VERSION}@g" src/layout/components/NavHeader/About.vue \ && yarn build FROM nginx:alpine diff --git a/utils/build.sh b/utils/build.sh index 1b815ae4e..f86080218 100755 --- a/utils/build.sh +++ b/utils/build.sh @@ -12,7 +12,7 @@ else fi function change_version() { - sedi "s@ version-dev @ ${VERSION} @g" "${project_dir}/src/layout/components/NavHeader/About.vue" || return 2 + sedi "s@version-dev@${VERSION}@g" "${project_dir}/src/layout/components/NavHeader/About.vue" || return 2 } function install_deps() {