diff --git a/_examples/gomodtidyall b/_examples/gomodtidyall new file mode 100755 index 0000000..5b633bc --- /dev/null +++ b/_examples/gomodtidyall @@ -0,0 +1,9 @@ +#!/bin/sh +set -e + +for d in *; do + [ ! -d "$d" ] && continue + pushd "$d" >/dev/null 2>&1 + go mod tidy + popd >/dev/null 2>&1 +done diff --git a/_examples/gomodtidyall.sh b/_examples/gomodtidyall.sh deleted file mode 100755 index 5b633bc..0000000 --- a/_examples/gomodtidyall.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -set -e - -for d in *; do - [ ! -d "$d" ] && continue - pushd "$d" >/dev/null 2>&1 - go mod tidy - popd >/dev/null 2>&1 -done