1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-06-25 16:57:12 -07: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"