#!/usr/bin/env bash echo 'updating all components' cd .. for d in */; do cd "$d" FILE=build if [ -f $FILE ]; then echo 'updating componenent ' + $d git pull fi cd .. done cd ./build.sh