#!/bin/bash dir=$(ls -d */) for i in $dir do cd ./$i/ && git pull && cd .. done