Comparison

prosodyctl @ 11884:248477e45c64

prosodyctl: Fix weird indentation
author Kim Alvefur <zash@zash.se>
date Sat, 06 Nov 2021 18:45:44 +0100
parent 11812:42e98179c034
child 12102:949c2b52f51e
comparison
equal deleted inserted replaced
11883:97aa4b2fe4e0 11884:248477e45c64
17 17
18 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 18 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
19 19
20 local function is_relative(path) 20 local function is_relative(path)
21 local path_sep = package.config:sub(1,1); 21 local path_sep = package.config:sub(1,1);
22 return ((path_sep == "/" and path:sub(1,1) ~= "/") 22 return ((path_sep == "/" and path:sub(1,1) ~= "/")
23 or (path_sep == "\\" and (path:sub(1,1) ~= "/" and path:sub(2,3) ~= ":\\"))) 23 or (path_sep == "\\" and (path:sub(1,1) ~= "/" and path:sub(2,3) ~= ":\\")))
24 end 24 end
25 25
26 -- Tell Lua where to find our libraries 26 -- Tell Lua where to find our libraries
27 if CFG_SOURCEDIR then 27 if CFG_SOURCEDIR then
28 local function filter_relative_paths(path) 28 local function filter_relative_paths(path)