瀏覽代碼

bug fixed

Lunny Xiao 11 年之前
父節點
當前提交
29fe44da50
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/repo.go

+ 1 - 1
models/repo.go

@@ -268,7 +268,7 @@ func initRepository(f string, user *User, repo *Repository, initReadme bool, rep
 	}
 	defer pu.Close()
 	// TODO: Windows .bat
-	if _, err = pu.WriteString(fmt.Sprintf("#!/usr/bin/env bash\n%s update ARGV[0] ARGV[1] ARGV[2]\n", appPath)); err != nil {
+	if _, err = pu.WriteString(fmt.Sprintf("#!/usr/bin/env bash\n%s update $1 $2 $3\n", appPath)); err != nil {
 		return err
 	}