discard spurious error 'file exists' from ln -ns syscall
This commit is contained in:
parent
65f291d478
commit
f62b167663
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ local function write_bat_hosts(rows)
|
||||||
|
|
||||||
-- try to make a symlink in /etc pointing to /tmp,
|
-- try to make a symlink in /etc pointing to /tmp,
|
||||||
-- if it exists, ln will do nothing.
|
-- if it exists, ln will do nothing.
|
||||||
os.execute("ln -ns /tmp/bat-hosts /etc/bat-hosts")
|
os.execute("ln -ns /tmp/bat-hosts /etc/bat-hosts 2>/dev/null")
|
||||||
end
|
end
|
||||||
|
|
||||||
local function receive_bat_hosts()
|
local function receive_bat_hosts()
|
||||||
|
|
Loading…
Reference in a new issue