diff --git a/_examples/gomodtidyall.sh b/_examples/gomodtidyall.sh index 3cea1ca..a9e6100 100755 --- a/_examples/gomodtidyall.sh +++ b/_examples/gomodtidyall.sh @@ -1,8 +1,8 @@ #!/bin/sh -for d in ./*; do +for d in *; do [ ! -d "$d" ] && continue - pushd "$d" > /dev/null 2>&1 + pushd "$d" >/dev/null 2>&1 go mod tidy - popd > /dev/null 2>&1 + popd >/dev/null 2>&1 done