mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-23 06:58:28 +00:00
Copy map file case insensitively
This commit is contained in:
parent
062b8922ec
commit
a5fb3dcb53
@ -3026,11 +3026,13 @@ doBackup(){
|
|||||||
echo "${NORMAL}\e[68G[ ${YELLOW}WARN${NORMAL} ]"
|
echo "${NORMAL}\e[68G[ ${YELLOW}WARN${NORMAL} ]"
|
||||||
logprint "Saved ark file not found, but temporary file was"
|
logprint "Saved ark file not found, but temporary file was"
|
||||||
else
|
else
|
||||||
echo "${NORMAL}\e[68G[ ${RED}FAILED${NORMAL} ]"
|
|
||||||
cimapfile="$(find "${savedir}" -maxdepth 1 -iname "${mapname}.ark" -or -iname "${mapname}.tmp" | head -n1)"
|
cimapfile="$(find "${savedir}" -maxdepth 1 -iname "${mapname}.ark" -or -iname "${mapname}.tmp" | head -n1)"
|
||||||
if [ -n "${cimapfile}" ]; then
|
if [ -n "${cimapfile}" ]; then
|
||||||
|
echo "${NORMAL}\e[68G[ ${YELLOW}WARN${NORMAL} ]"
|
||||||
logprint "Inconsistent casing in map name - ${mapname}.ark does not exist, but ${cimapfile##*/} does"
|
logprint "Inconsistent casing in map name - ${mapname}.ark does not exist, but ${cimapfile##*/} does"
|
||||||
|
cp -p "${cimapfile}" "${backupdir}/${mapname}.ark"
|
||||||
else
|
else
|
||||||
|
echo "${NORMAL}\e[68G[ ${RED}FAILED${NORMAL} ]"
|
||||||
logprint "Saved ark file could not be found"
|
logprint "Saved ark file could not be found"
|
||||||
logprint "Candidates:"
|
logprint "Candidates:"
|
||||||
for f in "${savedir}"/*.ark; do
|
for f in "${savedir}"/*.ark; do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user