Skip to content

Commit

Permalink
fix(update): 修复升级的问题 (#39)
Browse files Browse the repository at this point in the history
* fix(update): 修复升级的问题

* fix: 修复sed没有保存
  • Loading branch information
ibuler authored Jan 18, 2021
1 parent 0af452e commit 6678564
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/7_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ function main() {
exit 3
fi

if [[ -n "${target}" && ${target} != "${VERSION}" ]];then
sed -i "s@VERSION=${VERSION}@VERSION=${target}@g" "${PROJECT_DIR}/static.env"
export VERSION=${target}
if [[ "${to_version}" && "${to_version}" != "${VERSION}" ]];then
sed -i "s@VERSION=.*@VERSION=${to_version}@g" "${PROJECT_DIR}/static.env"
export VERSION=${to_version}
fi

echo_yellow "\n1. 检查配置变更"
Expand Down

0 comments on commit 6678564

Please sign in to comment.