Skip to content

Commit 1c5d7b7

Browse files
committed
add cd & escaping
1 parent 2460282 commit 1c5d7b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nimjl/config.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ when defined(nimjl_cross_compile):
3232
JuliaLibPattern = JuliaLibPath / libPrefix & "julia*" & libSuffix
3333
prefixLen = len(libPrefix)+len("julia")+1 # length of the string 'libjulia.'
3434
suffixLen = len(libSuffix)
35-
JlVersionCmd = fmt"name=$(echo libjulia.*.*.*.dylib); vers=${name:{prefixLen}:-{suffixLen}}; echo $vers"
35+
JlVersionCmd = fmt"cd {JuliaLibPath} && name=$(echo libjulia.*.*.*.dylib); vers=$\{name:{prefixLen}:-{suffixLen}\}; echo $vers"
3636
else:
3737
const JlVersionCmd = JuliaPath / "bin" / "julia" & " -E VERSION"
3838

0 commit comments

Comments
 (0)