#!/bin/sh wd=$(dirname $0) for i in $(ls $wd/bundle); do pushd $wd/bundle/$i git pull origin master popd > /dev/null done cd $wd git add . git commit -m "Bundle update `date`"