#!/usr/bin/env bash workdir=$(pwd) for dir in base i3 do cd ${workdir}/${dir} ./build done cd ${workdir}