From 6dc912657f031ee0557a6f248595927c2b29c536 Mon Sep 17 00:00:00 2001 From: Wertzui123 <46199283+Wertzui123@users.noreply.github.com> Date: Wed, 10 Jul 2024 17:23:37 +0200 Subject: [PATCH] cli: fix the `run` subcommand on Unix-based systems --- cli/main.aspl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/main.aspl b/cli/main.aspl index 9fe4892..2b423ff 100644 --- a/cli/main.aspl +++ b/cli/main.aspl @@ -150,7 +150,7 @@ if(subcommand == "compile" || subcommand == "build"){ if(Options:targetOs == "windows"){ outputFile += ".exe" } - outputFile = io.abs(outputFile) + outputFile = io.join_path([os.getwd(), outputFile]) aspl.compiler.compile(os.args()[i]) print(os.execute(outputFile).output, false) io.delete_file(outputFile)