From 4df4c057ef3fed435d547adfe4fd1187bb087f32 Mon Sep 17 00:00:00 2001 From: San Jacobs Date: Fri, 23 Jan 2026 22:36:16 +0100 Subject: Linux fixery --- build.sh | 2 +- main.odin | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/build.sh b/build.sh index d50604a..bd0f5e4 100755 --- a/build.sh +++ b/build.sh @@ -1 +1 @@ -odin run . +odin build . -debug -out:statics && ./statics test-data.ics -v -s Test && odin build . -o:speed -out:release/statics diff --git a/main.odin b/main.odin index 71706fe..d6a952c 100644 --- a/main.odin +++ b/main.odin @@ -69,7 +69,7 @@ main :: proc() { files_to_process : [dynamic]string flag_start := 0 - for &arg, i in os.args { + for &arg, i in os.args[1:] { if len(arg) == 2 { if arg[0] == '-' { flag_start = i @@ -79,10 +79,6 @@ main :: proc() { lower := strings.to_lower(arg, context.allocator) - // I feel like there's a platform that doesn't supply the executable - // as the first argument, so I'm doing this at runtime just in case - if lower[max(0, len(lower)-4):len(lower)] == ".exe" do continue - file_exists := os.is_file(arg) if file_exists { if lower[max(0, len(lower)-4):len(lower)] == ".ics" { -- cgit v1.2.1