fix(set_env) error:bad variable name, make compatible to sh

This commit is contained in:
kerms 2024-07-07 10:39:44 +08:00
parent 4e809cde3f
commit 80bbaf8f54
1 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
#!/usr/bin/env bash
export VITE_APP_GIT_TAG=$(git describe --tags | cut -d'-' -f1,2)
export VITE_APP_LAST_COMMIT=$(git log -1 --format=%cd)
VITE_APP_GIT_TAG=$(git describe --tags | cut -d'-' -f1,2)
VITE_APP_LAST_COMMIT=$(git log -1 --format=%cd)
export VITE_APP_GIT_TAG
export VITE_APP_LAST_COMMIT