From 50c2b2b1592a3c47e3532335a16300e5e13bcb6d Mon Sep 17 00:00:00 2001 From: Chris Bosse <30784811+chrisBosse@users.noreply.github.com> Date: Tue, 28 Apr 2020 16:10:08 -0400 Subject: [PATCH] Fix typo Typo created empty file `1` and threw error: sh: 1: dos2unix: not found --- extras/convert.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/convert.lua b/extras/convert.lua index a9ec8bf6..cd6f49ca 100755 --- a/extras/convert.lua +++ b/extras/convert.lua @@ -125,7 +125,7 @@ if conky == nil then --> standalone program -- 2 args: 1st is inputfile, 2nd is outputfile -- 0, 3 or more args: print usage to STDERR and quit if #arg == 1 or #arg == 2 then - if os.execute('command -v dos2unix 2&>1') then + if os.execute('command -v dos2unix 2>&1 >/dev/null') == 0 then os.execute('dos2unix ' .. arg[1]); end input = io.input(arg[1]);