Hash : cd3750a4 Author : Thomas de Grivel Date : 2021-02-14T10:13:06
Download
1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh set -e CMD="$@" [ -n "$CMD" ] || CMD=pwd find . -type d -name ".git" | \ while read G; do D="$(dirname "$G")" OLDDIR="$PWD" cd "$D" sh -c "$CMD" || true cd "$OLDDIR" done