#! /bin/bash branch=${2#"refs/heads/"} echo "Updating $branch in $1" if [ "$branch" == "master" ] then cd nightly/$1 git pull else cd preview/$1/$branch git pull fi # temporarily keeping both versions on the latest commit if [ $1 == "macrovision" ] then cd /home/web/crux.sexy/macrovision git pull fi python $WEBHOOK_SCRIPT_DIR/commits.py $1 $COMMITS_DIR/$1.json