Skip to content

Instantly share code, notes, and snippets.

@joshrieken
Created May 17, 2016 00:32
Show Gist options
  • Save joshrieken/b5934a5f4ae860b188da1eb80217cd34 to your computer and use it in GitHub Desktop.
Save joshrieken/b5934a5f4ae860b188da1eb80217cd34 to your computer and use it in GitHub Desktop.
Easily run commands for all umbrella project apps
#!/bin/sh
ESC_SEQ="\x1b["
COL_RESET=$ESC_SEQ"39;49;00m"
COL_GREEN=$ESC_SEQ"32;01m"
for f in apps/*;
do
[ -d $f ] && cd "$f" && echo "$COL_GREEN ======= $f ======= $COL_RESET" && $@
cd - >/dev/null
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment