Browse Source

Remove abuse of filedir as a local variable

pull/1065/head
CedarLUG 9 years ago
parent
commit
60aff838cf
  1. 6
      lgsm/functions/command_postdetails.sh

6
lgsm/functions/command_postdetails.sh

@ -50,13 +50,13 @@ fn_gen_rand() {
} }
# Rather than a one-pass sed parser, default to using a temporary directory # Rather than a one-pass sed parser, default to using a temporary directory
filedir="${lgsmdir}/tmp" posttmpdir="${lgsmdir}/tmp"
# Not all game servers possess a tmp directory. So create it if # Not all game servers possess a tmp directory. So create it if
# it doesn't already exist # it doesn't already exist
mkdir -p ${filedir} 2>&1 >/dev/null mkdir -p ${posttmpdir} 2>&1 >/dev/null
tmpfile=${filedir}/$(fn_gen_rand 10).tmp tmpfile=${posttmpdir}/$(fn_gen_rand 10).tmp
touch ${tmpfile} || fn_bad_tmpfile touch ${tmpfile} || fn_bad_tmpfile

Loading…
Cancel
Save