diff --git a/scripts/pr-codecov-run-tests.sh b/scripts/pr-codecov-run-tests.sh index 136bc42b9c..eb8c72a424 100755 --- a/scripts/pr-codecov-run-tests.sh +++ b/scripts/pr-codecov-run-tests.sh @@ -20,7 +20,7 @@ sep="" for p in ${packages}; do # Check that the path exists and contains Go files. - if ls "${p}/*.go" >/dev/null 2>&1; then + if ls "${p}"/*.go >/dev/null 2>&1; then if [[ $p != "." ]]; then p="./$p" fi