#!/bin/bash dirs=( ~/wd ~/bin ~/Documents/attachments ~/Documents/org ~/Documents/roam) for dir in ${dirs[@]} do echo "-> Pulling from" $dir cd $dir git pull done