stackalytics/scripts/pull-repos.sh
2013-06-22 15:42:32 +04:00

19 lines
327 B
Bash
Executable File

#!/bin/bash
if [[ -z $STACKALYTICS_HOME ]]; then
CONF='../etc/analytics.conf.local'
else
CONF="$STACKALYTICS_HOME/conf/analytics.conf"
fi
TOP_DIR=$(cd $(dirname "$0") && pwd)
cd `cat $CONF | grep sources_root | awk -F"=" '{print $2}'`
for a in `dir`; do
echo "Pulling $a"
cd $a
git pull
cd ../
done