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