1 2 3 4 5 6 7 8
#!/bin/sh for d in *; do [ ! -d "$d" ] && continue pushd "$d" >/dev/null 2>&1 go mod tidy popd >/dev/null 2>&1 done