File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -343,6 +343,7 @@ balena_deploy_block() {
343
343
local _esr=" ${11} "
344
344
local _discontinued
345
345
local _api_env=$( balena_lib_environment)
346
+ local _image_bind
346
347
347
348
[ -z " ${_device_type} " ] && echo " Device type is required" && return
348
349
_discontinued=$( balena_lib_get_dt_state " ${_device_type} " )
@@ -354,6 +355,7 @@ balena_deploy_block() {
354
355
[ -z " ${_appName} " ] && echo " App name is required" && return
355
356
if [ -f " ${_image_path} " ]; then
356
357
_image_path=" $( readlink --canonicalize " ${_image_path} " ) "
358
+ _image_bind=" -v ${_image_path} :/host/appimage.docker"
357
359
fi
358
360
_esr=${_esr:- " ${ESR} " }
359
361
@@ -387,7 +389,7 @@ balena_deploy_block() {
387
389
-e balenaCloudEmail=" ${_balenaCloudEmail} " \
388
390
-e balenaCloudPassword=" ${_balenaCloudPassword} " \
389
391
-e ESR=" ${_esr} " \
390
- -v " ${_image_path} " :/host/appimage.docker \
392
+ ${_image_bind} \
391
393
-v " ${device_dir} " :/work \
392
394
-v " ${_work_dir} " :/deploy \
393
395
--privileged \
You can’t perform that action at this time.
0 commit comments