Skip to content

Commit 056eb04

Browse files
author
yunh
committed
can run on kylin loongson
1 parent 7299e62 commit 056eb04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gpull.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /usr/bin/expect -f
22
set timeout 30
3-
for {set i 0} {<=10} {incr i} {
3+
for {set i 0} {$i<=10} {incr i} {
44
puts "start pulling git "
55
spawn git pull origin master
66
expect "Already up-to-date." { puts "pulling ok"; exit }

gpush.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /usr/bin/expect -f
22
set timeout 30
3-
for {set i 0} {<=10} {incr i} {
3+
for {set i 0} {$i<=10} {incr i} {
44
puts "start pushing git "
55
spawn git push origin master
66
expect "Everything up-to-date" { puts "pushing ok"; exit }

0 commit comments

Comments
 (0)