From e45588398e6148d543eb7df6f63a1b3f6adac6ba Mon Sep 17 00:00:00 2001 From: lrob Date: Fri, 19 Feb 2016 08:03:52 +0100 Subject: [PATCH] "touch" not needed + adjusting AddFile --- functions/command_fastdl.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/functions/command_fastdl.sh b/functions/command_fastdl.sh index af29c101e..425a9e7f7 100644 --- a/functions/command_fastdl.sh +++ b/functions/command_fastdl.sh @@ -278,11 +278,9 @@ if [ "${luaressource}" == "on" ]; then fn_printdots "Generating new download enforcer" fn_scriptlog "Generating new download enforcer" sleep 1 - # Create the lua file - touch "${luafastdlfullpath}" # Read all filenames and put them into a lua file at the right path find "${fastdldir}" \( -name "*.*" ! -name "*.bz2" \) -printf '%P\n' | while read line; do - echo "resource.AddFile("\""${line}"\"")" >> ${luafastdlfullpath} + echo "resource.AddFile( "\""${line}"\"" )" >> ${luafastdlfullpath} done fn_printok "Download enforcer generated" fn_scriptlog "Download enforcer generated" @@ -312,6 +310,7 @@ fn_printok "Congratulations, it's done !" fn_scriptlog "FastDL job done" sleep 2 echo -en "\n" +echo "" fn_printinfo "Need more doc ? See https://github.com/dgibbs64/linuxgsm/wiki/Fastdl" echo -en "\n" if [ "$bzip2installed" == "0" ]; then