File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,19 +19,19 @@ function buildModels() {
1919
2020 cd ${tempDirectory} /models
2121 for model in * /; do
22+ cd ${tempDirectory} /models/$model
2223 echo " Building model $model "
23- buildAndRunModel $model $ pathToSwiftPackage
24+ buildAndRunModel $pathToSwiftPackage
2425 done
2526}
2627
2728function buildAndRunModel() {
28- modelName=$1
29- pathToSwiftPackage=$2
29+ pathToSwiftPackage=$1
3030
3131 # copy with replace all model files to the swift package
3232 mkdir -p $pathToSwiftPackage /Sources/models
3333 rm -rf $pathToSwiftPackage /Sources/models/*
34- cp -r $modelName /* $pathToSwiftPackage /Sources/models
34+ cp -r . /* $pathToSwiftPackage /Sources/models
3535 ls $pathToSwiftPackage /Sources/models
3636
3737 # build and run the model
You can’t perform that action at this time.
0 commit comments