Skip to content

Instantly share code, notes, and snippets.

@cristiroma
cristiroma / update.git
Created March 12, 2014 09:13
Bash shell script to handle multiple repositories in the same directory
#!/bin/bash
COMMAND=$1
if [ -z $1 ]; then
COMMAND="status"
else
COMMAND="$@"
fi
for repo in `find . -maxdepth 1 -mindepth 1 -type d`