case insensitive

This commit is contained in:
Ben Allfree
2026-04-11 17:08:12 -07:00
parent 6ae29bca59
commit 033b24cab6
+4 -14
View File
@@ -4,18 +4,8 @@ set -euo pipefail
ROOT="${1:?root dir}"
STAGE="${2:?stage dir}"
for f in \
README \
README.md \
README.rst \
README.txt \
readme.md \
LICENSE \
LICENSE.md \
LICENSE.txt \
COPYING \
COPYRIGHT; do
if [[ -f "$ROOT/$f" ]]; then
cp -a "$ROOT/$f" "$STAGE/"
fi
shopt -s nocaseglob
for f in "$ROOT"/readme* "$ROOT"/license* "$ROOT"/copying* "$ROOT"/copyright*; do
[[ -f "$f" ]] && cp -a "$f" "$STAGE/"
done
shopt -u nocaseglob