Skip to content

Commit 835794b

Browse files
committed
build(docker): support Git Bash execution without rsync
1 parent 4f6e921 commit 835794b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/docker/itk-wasm/build.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ exe=$(ociExe)
99
cd $script_dir
1010

1111
mkdir -p ITKWebAssemblyInterfaceModuleCopy
12-
rsync -a ../../../{include,CMakeLists.txt,itk-module.cmake} ./ITKWebAssemblyInterfaceModuleCopy/
13-
rsync -a ../../../src/{*.cxx,CMakeLists.txt} ./ITKWebAssemblyInterfaceModuleCopy/src/
14-
rsync -a ../../../src/emscripten-module ./ITKWebAssemblyInterfaceModuleCopy/src/
12+
cp_exe=$(which rsync 2>/dev/null || which cp)
13+
$cp_exe -a ../../../{include,CMakeLists.txt,itk-module.cmake} ./ITKWebAssemblyInterfaceModuleCopy/
14+
$cp_exe -a ../../../src/{*.cxx,CMakeLists.txt} ./ITKWebAssemblyInterfaceModuleCopy/src/
15+
$cp_exe -a ../../../src/emscripten-module ./ITKWebAssemblyInterfaceModuleCopy/src/
1516
mkdir -p median-filter-pipelineCopy
16-
rsync -a ../../../packages/core/typescript/itk-wasm/test/pipelines/median-filter-pipeline/{CMakeLists.txt,median-filter-test.cxx} ./median-filter-pipelineCopy
17+
$cp_exe -a ../../../packages/core/typescript/itk-wasm/test/pipelines/median-filter-pipeline/{CMakeLists.txt,median-filter-test.cxx} ./median-filter-pipelineCopy
1718

1819
TAG=$(date '+%Y%m%d')-$(git rev-parse --short HEAD)
1920
VCS_REF=$(git rev-parse --short HEAD)

0 commit comments

Comments
 (0)