#!/usr/bin/env bash cd .. for d in */; do cd "$d" FILE=build if [ -d $FILE ]; then git checkout master fi cd .. done cd installation ./update.sh