| Left: | ||
| Right: |
| LEFT | RIGHT |
|---|---|
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 cd /home/rsync/subscription/ | 3 cd /home/rsync/subscription/ |
| 4 | 4 |
| 5 for i in $(ls) | 5 for i in $(ls) |
| 6 do | 6 do |
| 7 cd $i | 7 hg pull -R $i -q --update |
| 8 hg pull && hg update | |
| 9 cd - | |
|
Wladimir Palant
2013/11/12 13:04:03
These four commands can be replaced by one:
hg pu
christian
2013/11/12 16:06:06
Done.
| |
| 10 done | 8 done |
|
Wladimir Palant
2013/11/12 13:04:03
I thought by "batch script" you actually meant Pyt
christian
2013/11/12 16:06:06
I think i sad "bash script" but sometimes hard und
| |
| 11 | 9 |
| LEFT | RIGHT |