From a083f210b2a43a71faf535e975d5880bc0d1624c Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Tue, 21 May 2019 10:33:39 +0200 Subject: [PATCH] fix bug with parent directories in compile script --- sh/compile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/compile b/sh/compile index 3dc6fdb..e8dab1b 100755 --- a/sh/compile +++ b/sh/compile @@ -227,7 +227,7 @@ compile() { local flags=(${@[1,-2]}) # drop everything past the first dot and use that as our output filename. - local out=/tmp/${${file%%.*}##*/} + local out=/tmp/${${file##*/}%%.*} if [ -n "$MSYSTEM" ]; then # explicitly output as .exe to avoid weirdness. out="$out.exe"