Просмотр исходного кода

Remove abuse of filedir as a local variable

CedarLUG 9 лет назад
Родитель
Сommit
60aff838cf
1 измененных файлов с 3 добавлено и 3 удалено
  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