#!/bin/bash EXEC_DIR=$(pwd) echo "Execute git pull in each system" for SYSTEM in $EXEC_DIR/systems/*/*/ ; do cd $SYSTEM git pull cd $EXEC_DIR done