#!/bin/bash echo "Updating .dotfiles" git pull for dir in */.git do dir=$(sed s/\.git// <<< "$dir") echo "Updating $dir" cd "$dir" git pull cd .. done