1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 04:39:03 -08:00

fix bug with parent directories in compile script

This commit is contained in:
Connor Olding 2019-05-21 10:33:39 +02:00
parent 90b36aacba
commit a083f210b2

View file

@ -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"