File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- 1.0.0-beta2-build10
1+ 1.0.0-beta2-build11
Original file line number Diff line number Diff line change 1- ## v1.0.0-beta2-build10
1+ ## v1.0.0-beta2-build11
22
33### 🐛 Bug Fixes
4- - Fix version fallback check: use ` __VERSION__ ` placeholder instead of hardcoded ` 0.88.1 `
4+ - Fix duplicate update success message on Ctrl+U
Original file line number Diff line number Diff line change 4242 [switch ]$showVersion
4343)
4444
45- $VERSION = " 1.0.0-beta2-build10 "
46- if ($VERSION -eq " 1.0.0-beta2-build10 " ) {
45+ $VERSION = " 1.0.0-beta2-build11 "
46+ if ($VERSION -eq " 1.0.0-beta2-build11 " ) {
4747 $scriptDir = Split-Path - Parent $MyInvocation.MyCommand.Path
4848 $versionFile = Join-Path $scriptDir " ..\VERSION"
4949 if (Test-Path $versionFile ) {
Original file line number Diff line number Diff line change @@ -304,8 +304,8 @@ LIST_PROFILES=false
304304SHOW_PROFILE=" "
305305SKIP_SW=()
306306ONLY_SW=()
307- VERSION=" 1.0.0-beta2-build10 "
308- if [[ " $VERSION " == " 1.0.0-beta2-build10 " ]]; then
307+ VERSION=" 1.0.0-beta2-build11 "
308+ if [[ " $VERSION " == " 1.0.0-beta2-build11 " ]]; then
309309 SCRIPT_DIR=" $( cd " $( dirname " $0 " ) " && pwd) "
310310 if [[ -f " $SCRIPT_DIR /../VERSION" ]]; then
311311 VERSION=$( cat " $SCRIPT_DIR /../VERSION" | tr -d ' [:space:]' )
@@ -2226,7 +2226,6 @@ handle_ctrl_u() {
22262226 self_update true
22272227 local result=$?
22282228 if [[ $result -eq 0 ]]; then
2229- log_info " $LANG_UPDATE_SUCCESS "
22302229 log_info " 请重新运行脚本"
22312230 fi
22322231 exit $result
Original file line number Diff line number Diff line change @@ -2226,7 +2226,6 @@ handle_ctrl_u() {
22262226 self_update true
22272227 local result=$?
22282228 if [[ $result -eq 0 ]]; then
2229- log_info " $LANG_UPDATE_SUCCESS "
22302229 log_info " 请重新运行脚本"
22312230 fi
22322231 exit $result
You can’t perform that action at this time.
0 commit comments