1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-16 01:57:09 +00:00
Typo created empty file `1` and threw error:

sh: 1: dos2unix: not found
This commit is contained in:
Chris Bosse 2020-04-28 16:10:08 -04:00 committed by Brenden Matthews
parent 348a174b97
commit 50c2b2b159

View File

@ -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]);