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:
parent
90b36aacba
commit
a083f210b2
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue