mirror of
https://github.com/notwa/rc
synced 2024-07-02 11:47:12 -07:00
fix bug with parent directories in compile script
This commit is contained in:
parent
90b36aacba
commit
a083f210b2
|
@ -227,7 +227,7 @@ compile() {
|
||||||
local flags=(${@[1,-2]})
|
local flags=(${@[1,-2]})
|
||||||
|
|
||||||
# drop everything past the first dot and use that as our output filename.
|
# 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
|
if [ -n "$MSYSTEM" ]; then
|
||||||
# explicitly output as .exe to avoid weirdness.
|
# explicitly output as .exe to avoid weirdness.
|
||||||
out="$out.exe"
|
out="$out.exe"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user