Skip to content

Commit 31fc686

Browse files
Remove potential bashism, replace with something more POSIX-y
Signed-off-by: Marek Kubica <[email protected]>
1 parent 341cd12 commit 31fc686

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/blackbox-tests/test-cases/pkg/ocamlformat/ocamlformat-custom-build-dir.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ the build directory in `$dev_tool_lock_dir` with our custom build directory.
1818
$ default_build_dir="_build"
1919
$ custom_build_dir="_other_build"
2020
$ default_dev_tool_lock_dir="${dev_tool_lock_dir}"
21-
$ dev_tool_lock_dir="${dev_tool_lock_dir/#$default_build_dir/$custom_build_dir}"
21+
$ dev_tool_lock_dir=$(echo "${dev_tool_lock_dir}" | sed "s/^$default_build_dir/$custom_build_dir/")
2222

2323
Create a configuration with this custom build directory
2424

0 commit comments

Comments
 (0)