File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class WalleController extends Controller {
29
29
* checkout the current version 查看版本
30
30
*/
31
31
public function actionIndex () {
32
- echo sprintf (
"\n\033[32mwalle-web %s (built: %s) \033[0m \nCopyright (c) 2015-2016 The walle-web Group. \nGet Help from [email protected] . Enjoy It. \n\n" ,
32
+ printf (
"\n\033[32mwalle-web %s (built: %s) \033[0m \nCopyright (c) 2015-2016 The walle-web Group. \nGet Help from [email protected] . Enjoy It. \n\n" ,
33
33
Yii::$ app ->params ['version ' ], Yii::$ app ->params ['buildTime ' ]);
34
34
}
35
35
@@ -45,7 +45,7 @@ public function actionUpgrade() {
45
45
$ commander ->runLocalCommand ('/usr/bin/env git stash save ' );
46
46
// pull code 更新代码
47
47
echo 'pull code 更新代码: git pull ... ' , PHP_EOL ;
48
- $ commander ->runLocalCommand ('/usr/bin/env git pull ' );
48
+ $ commander ->runLocalCommand ('/usr/bin/env git pull --rebase ' );
49
49
// stash pop local change 弹出暂存本地修改
50
50
echo 'stash pop local change 弹出暂存本地修改: git stash pop ... ' , PHP_EOL ;
51
51
$ commander ->runLocalCommand ('/usr/bin/env git stash pop ' );
You can’t perform that action at this time.
0 commit comments