mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Merge pull request #3 from rursache/fix/extract-mpq-case-check
Fix MPQ detection failing when files are lowercase .mpq
This commit is contained in:
commit
2d010ffe1a
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ if [ -d "${OUTPUT_DIR}/expansions" ]; then
|
|||
fi
|
||||
|
||||
# Quick sanity check: look for any .MPQ files
|
||||
if ! ls "$MPQ_DIR"/*.MPQ "$MPQ_DIR"/*.mpq 2>/dev/null | head -1 > /dev/null 2>&1; then
|
||||
if ! compgen -G "$MPQ_DIR"/*.MPQ > /dev/null 2>&1 && ! compgen -G "$MPQ_DIR"/*.mpq > /dev/null 2>&1; then
|
||||
echo "Error: No .MPQ files found in: $MPQ_DIR"
|
||||
echo "Make sure this is the WoW Data/ directory (not the WoW root)."
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue