From 0e0251840d80dcdae215c3520b1debb3a1938e6d Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Wed, 11 May 2016 17:34:48 +0200 Subject: [PATCH] Debian: Allows special characters in title When using spaces in title, the executable in /usr/bin would silently not load the file and show the default "no game" screen --- src/scripts/debian.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/debian.lua b/src/scripts/debian.lua index 27b457b..24ddf8e 100644 --- a/src/scripts/debian.lua +++ b/src/scripts/debian.lua @@ -106,7 +106,7 @@ function s.script(project) -- /usr/bin/${PACKAGE} writeFile("/usr/bin/"..project.package, "#!/bin/sh\n".. - "love "..loveFileDeb.."\n", + "love '"..loveFileDeb:gsub("'", "\\'").."'\n", true ) assert(fs.chmod(tempDir.."/usr/bin/"..project.package, "+x"))