diff --git a/functions/command_fastdl.sh b/functions/command_fastdl.sh index 5769d7beb..8eef409cf 100644 --- a/functions/command_fastdl.sh +++ b/functions/command_fastdl.sh @@ -183,14 +183,14 @@ sleep 1 # Generate lua file that will force download any file into the FastDL folder fn_lua_fastdl(){ # Remove lua file if luaressource is turned off -if [ ${luaressource} == "off" ]; then +if [ "${luaressource}" == "off" ]; then if [ -f "${luafastdlfullpath}" ]; then echo "Removing download enforcer" sleep 1 rm -R "${luafastdlfullpath}" fi fi -if [ ${luaressource == "on" ]; then +if [ "${luaressource}"" == "on" ]; then if [ -f "${luafastdlfullpath}" ]; then echo "Removing old download enforcer" sleep 1