From 033b24cab6f9425108b73c59353e2c6a1a009e81 Mon Sep 17 00:00:00 2001 From: Ben Allfree Date: Sat, 11 Apr 2026 17:08:12 -0700 Subject: [PATCH] case insensitive --- scripts/stage-fw-bundle-docs.sh | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/scripts/stage-fw-bundle-docs.sh b/scripts/stage-fw-bundle-docs.sh index 259f151..7e860d8 100755 --- a/scripts/stage-fw-bundle-docs.sh +++ b/scripts/stage-fw-bundle-docs.sh @@ -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