mirror of
https://github.com/MeshEnvy/mesh-forge.git
synced 2026-08-07 17:33:37 +02:00
case insensitive
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user