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