소스 검색

Fixed updater bug

Toby Chui 7 달 전
부모
커밋
984b907a35
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      build/release.sh
  2. 2 2
      mod/update/update.go

+ 1 - 1
build/release.sh

@@ -7,7 +7,7 @@ cd ../
 #go-licenses report imuslab.com/zoraxy > system/gomod-license.csv
 
 # Build release distribution
-make
+#make
 
 # Create and prepare for a Github release style folder structure
 rm -rf ./build/github/src

+ 2 - 2
mod/update/update.go

@@ -56,8 +56,8 @@ func RunConfigUpdate(fromVersion int, toVersion int) {
 
 	//Do iterate update
 	for i := fromVersion; i < toVersion; i++ {
-		oldVersion := fromVersion
-		newVersion := fromVersion + 1
+		oldVersion := i
+		newVersion := i + 1
 		fmt.Println("Updating from v", oldVersion, " to v", newVersion)
 		runUpdateRoutineWithVersion(oldVersion, newVersion)
 		//Write the updated version to file