From: Tobias Ulmer Date: Thu, 12 Jul 2012 09:04:07 +0000 (+0200) Subject: Remove logging in shquote() X-Git-Tag: e2factory-2.3.12rc1~10 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=9f1f9f5f5b2bdab7427ce7ba98edbe718be5157a;p=e2factory.git Remove logging in shquote() Signed-off-by: Tobias Ulmer --- diff --git a/generic/e2lib.lua b/generic/e2lib.lua index c3d8780..18cd19c 100644 --- a/generic/e2lib.lua +++ b/generic/e2lib.lua @@ -684,7 +684,7 @@ end -- @return quoted string function shquote(str) assert(type(str) == "string") - e2lib.logf(4, "e2lib.shquote(%s)", str) + str = string.gsub(str, "'", "'\"'\"'") return "'"..str.."'" end