mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
let data, maps and mp3 directory be truly case insensitive
This commit is contained in:
parent
bddf662178
commit
e946769b42
16
vcmibuilder
16
vcmibuilder
@ -209,17 +209,13 @@ fi
|
||||
|
||||
if [[ -n "$data_dir" ]]
|
||||
then
|
||||
cp -r "$data_dir"/Data "$dest_dir"
|
||||
cp -r "$data_dir"/Maps "$dest_dir"
|
||||
|
||||
# this folder is named differently from time to time
|
||||
# vcmi can handle any case but script can't
|
||||
if [ -d "$data_dir"/MP3 ]
|
||||
then
|
||||
cp -r "$data_dir"/MP3 "$dest_dir"
|
||||
else
|
||||
cp -r "$data_dir"/Mp3 "$dest_dir"
|
||||
fi
|
||||
# bash also has `shopt -s nocaseglob` but we don't want this to
|
||||
# accidentally influence other parts of this script
|
||||
# since the directory names are short, we use this pattern matching
|
||||
cp -r "$data_dir"/[Dd][Aa][Tt][Aa] "$dest_dir"
|
||||
cp -r "$data_dir"/[Mm][Aa][Pp][Ss] "$dest_dir"
|
||||
cp -r "$data_dir"/[Mm][Pp]3 "$dest_dir"
|
||||
fi
|
||||
|
||||
if [[ -n "$download" ]]
|
||||
|
Loading…
Reference in New Issue
Block a user