Remove need for trailing forward slash in dir

This commit is contained in:
Margen67 2025-08-17 00:44:39 -07:00 committed by GitHub
parent e128976193
commit 1e1db47323
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,7 @@
-- Basic usage: project_zstd(ZSTD_DIR)
function project_zstd(dir, compression, decompression, deprecated, dictbuilder, legacy)
if string.sub(dir, -1, 1) ~= '/' then dir = dir .. '/' end
if compression == nil then compression = true end
if decompression == nil then decompression = true end
if deprecated == nil then deprecated = false end