You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
299 B
10 lines
299 B
#!/bin/sh
|
|
|
|
PATH=/home/leto/bin:/bin:/usr/bin:/usr/local/bin
|
|
DIR=/sites
|
|
|
|
for i in `ls /sites/`; do
|
|
# we don't care about STDOUT, but let STDERR escape (which will generate email if used in cron)
|
|
cd $DIR/$i/htdocs && git fetch --all > /dev/null && git checkout origin/master > /dev/null
|
|
done
|
|
|
|
|