Skip to content

Commit 61bed45

Browse files
committed
AbstractStrings need expansion too!
1 parent 94bf4a1 commit 61bed45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/generate_sandboxed_bash.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ function add_env_dir!(dict, env_var; default=nothing)
3737
end
3838

3939
# Super-simple environment expansion
40-
envexpand(s::String) = replace(s, r"\${[a-zA-Z0-9_]+}" => m -> get(ENV, m[3:end-1], m))
40+
envexpand(s::AbstractString) = replace(s, r"\${[a-zA-Z0-9_]+}" => m -> get(ENV, m[3:end-1], m))
41+
4142

4243
# read-write mount mappings
4344
workspace_mappings = Dict{String,String}()

0 commit comments

Comments
 (0)