From: Margen67 Date: Sun, 17 Aug 2025 07:44:39 +0000 (-0700) Subject: Remove need for trailing forward slash in dir X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4459%2Fhead;p=thirdparty%2Fzstd.git Remove need for trailing forward slash in dir --- diff --git a/contrib/premake/zstd.lua b/contrib/premake/zstd.lua index df1ace3ee..f3fd5b293 100644 --- a/contrib/premake/zstd.lua +++ b/contrib/premake/zstd.lua @@ -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