Skip to content

Commit 839a6e3

Browse files
Copilotbytemain
andauthored
Clean up final mirror validation comments
Agent-Logs-Url: https://github.com/version-fox/vfox-python/sessions/0837af3b-3d14-4944-9bf1-7484f202c39e Co-authored-by: bytemain <13938334+bytemain@users.noreply.github.com>
1 parent 810fb1e commit 839a6e3

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

lib/util.lua

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,9 @@ local function shellQuote(value)
231231
if string.find(value, "[\r\n%z]") then
232232
error("Path contains unsupported control character: " .. value)
233233
end
234-
if string.find(value, "%.%.") then
234+
if string.find(value, "%.%.%/") or string.find(value, "%.%.\\") then
235235
error("Path contains unsupported traversal segment: " .. value)
236236
end
237-
if string.find(value, "[^%w%._%-%+/\\:]") then
238-
error("Path contains unsupported shell character: " .. value)
239-
end
240237

241238
if RUNTIME.osType == "windows" or OS_TYPE == "windows" then
242239
if string.find(value, '"', 1, true) then
@@ -509,10 +506,6 @@ function uvBuildInstall(ctx)
509506
end
510507

511508
print("Extracting Python uv-build archive...")
512-
local tarStatus = os.execute("tar --version > /dev/null 2>&1")
513-
if tarStatus ~= 0 then
514-
error("Failed to extract uv-build archive because tar is not available")
515-
end
516509
local status = os.execute("tar -xf " .. shellQuote(archivePath) .. " --strip-components=1 -C " .. shellQuote(path))
517510
if status ~= 0 then
518511
error("Failed to extract uv-build archive. Status: " .. status .. ". Ensure tar is available, the archive is valid, and disk permissions/space are sufficient")

0 commit comments

Comments
 (0)