File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ balena_deploy_block() {
336
336
local _image_path=" ${4:- " " } "
337
337
local _deploy=" ${5:- no} "
338
338
local _final=" ${6:- no} "
339
- local _work_dir=" ${7:- " ${device_dir} " } "
339
+ local _work_dir=" ${7:- " ${device_dir} /workdir " } "
340
340
local _balenaos_account=" ${8:- " balena_os" } "
341
341
local _balenaCloudEmail=" ${9:- " ${balenaCloudEmail} " } "
342
342
local _balenaCloudPassword=" ${10:- " ${balenaCloudPassword} " } "
@@ -358,6 +358,7 @@ balena_deploy_block() {
358
358
_esr=${_esr:- " ${ESR} " }
359
359
360
360
if [ ! -f " ${_work_dir} /balena.yml" ]; then
361
+ [ ! -d " ${_work_dir} " ] && mkdir " ${_work_dir} "
361
362
if [ -f " ${device_dir} /balena.yml" ]; then
362
363
cp " ${device_dir} /balena.yml" " ${_work_dir} "
363
364
else
@@ -627,7 +628,7 @@ balena_deploy_hostos() {
627
628
>&2 echo " No compose file in ${_path} "
628
629
return 1
629
630
fi
630
- cp " ${_path} /docker-compose.yml " " ${device_dir} "
631
- cat " ${_path} /docker-compose.yml" >&2
631
+ [ ! -d " ${device_dir} /workdir/ " ] && mkdir " ${device_dir} /workdir/ "
632
+ cp " ${_path} /docker-compose.yml" " ${device_dir} /workdir/ "
632
633
balena_deploy_block " ${_appName} " " ${_device_type} " " ${_bootable} "
633
634
}
You can’t perform that action at this time.
0 commit comments