copyCode.sh 264 Bytes
Newer Older
Juon Kawakami's avatar
init  
Juon Kawakami committed
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
. $(dirname $0)/config.sh

if [ "$1" == "" ]; then
    TEAMS=$TEAM_SHORTHANDS
else
    TEAMS=$1
fi

for t in $TEAMS; do
    TEAM_USER=$(echo $t | tr '[A-Z]' '[a-z]')
    rsync -rcLv $RSYNC_OPTS /home/$TEAM_USER/code/ /home/$LOCAL_USER/code/$TEAM/
done