summaryrefslogtreecommitdiffstats
path: root/src/CheckBasicStyle.lua
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-09-17 11:20:10 +0200
committerMattes D <github@xoft.cz>2015-09-17 11:20:10 +0200
commit9871c0b0731446f6c12137502153c24c9f1d9dfa (patch)
tree4b984cbc73628fac3a3e0ed3aff55a65dfaf82f7 /src/CheckBasicStyle.lua
parentMerge pull request #2457 from cuberite/log (diff)
downloadcuberite-9871c0b0731446f6c12137502153c24c9f1d9dfa.tar
cuberite-9871c0b0731446f6c12137502153c24c9f1d9dfa.tar.gz
cuberite-9871c0b0731446f6c12137502153c24c9f1d9dfa.tar.bz2
cuberite-9871c0b0731446f6c12137502153c24c9f1d9dfa.tar.lz
cuberite-9871c0b0731446f6c12137502153c24c9f1d9dfa.tar.xz
cuberite-9871c0b0731446f6c12137502153c24c9f1d9dfa.tar.zst
cuberite-9871c0b0731446f6c12137502153c24c9f1d9dfa.zip
Diffstat (limited to '')
-rwxr-xr-xsrc/CheckBasicStyle.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/CheckBasicStyle.lua b/src/CheckBasicStyle.lua
index 9521534a8..f9f8f6b4d 100755
--- a/src/CheckBasicStyle.lua
+++ b/src/CheckBasicStyle.lua
@@ -412,6 +412,12 @@ end
-- Process the files in the list:
for _, fnam in ipairs(ToProcess) do
+
+ -- Remove the optional "./" prefix:
+ if (fnam:sub(1, 2) == "./") then
+ fnam = fnam:sub(3)
+ end
+
ProcessItem(fnam)
end