From f62b16766372e0425370cf7031c6c9dbf92e11ee Mon Sep 17 00:00:00 2001 From: Gui Iribarren Date: Mon, 30 Sep 2013 18:49:55 +0200 Subject: [PATCH] discard spurious error 'file exists' from ln -ns syscall --- alfred/files/bat-hosts.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alfred/files/bat-hosts.lua b/alfred/files/bat-hosts.lua index 67d2523..7347fac 100644 --- a/alfred/files/bat-hosts.lua +++ b/alfred/files/bat-hosts.lua @@ -82,7 +82,7 @@ local function write_bat_hosts(rows) -- try to make a symlink in /etc pointing to /tmp, -- 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 local function receive_bat_hosts()