dot_testing/builds/utils/sh/git-survey
2023-07-07 16:55:42 -05:00

13 lines
171 B
Bash
Executable File

#!/bin/sh
for i in *; do
cd "$i" || continue
exists=$(
git status |
grep -c 'Your branch is ahead of '
)
[ "$exists" -eq 0 ] || printf "> %s\n" "$i"
cd ..
done