mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-25 13:16:40 +00:00
22 lines
474 B
Bash
22 lines
474 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Copyright The OpenTelemetry Authors
|
||
|
# SPDX-License-Identifier: Apache-2.0
|
||
|
|
||
|
set -euo pipefail
|
||
|
|
||
|
dirs=$(find . -type d -not -path "*/internal*" -not -path "*/test*" -not -path "*/example*" -not -path "*/.*" | sort)
|
||
|
|
||
|
missingReadme=false
|
||
|
for dir in $dirs; do
|
||
|
if [ ! -f "$dir/README.md" ]; then
|
||
|
echo "couldn't find README.md for $dir"
|
||
|
missingReadme=true
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
if [ "$missingReadme" = true ] ; then
|
||
|
echo "Error: some READMEs couldn't be found."
|
||
|
exit 1
|
||
|
fi
|