diff options
| -rw-r--r-- | init.lua | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -30,8 +30,7 @@ end local function lock_file_path(path) local filename = path:gsub('/', '%%') assert(os.execute('mkdir -p "' .. M.directory .. '"')) - local lfile_path = capture_cmd('echo "' .. M.directory .. '/' .. filename .. '.lock"') - return lfile_path:sub(1, #lfile_path - 1) -- trim newline from path + return capture_cmd('printf %s "' .. M.directory .. '/' .. filename .. '.lock"') end -- determine vis' pid |
