Explorar o código

Remove abuse of filedir as a local variable

CedarLUG %!s(int64=10) %!d(string=hai) anos
pai
achega
60aff838cf
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      lgsm/functions/command_postdetails.sh

+ 3 - 3
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
-filedir="${lgsmdir}/tmp"
+posttmpdir="${lgsmdir}/tmp"
 
 # Not all game servers possess a tmp directory.  So create it if
 # 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