File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,6 @@ balena_deploy_artifacts () {
34
34
local _device_state
35
35
local _yocto_build_deploy
36
36
local _slug
37
- local _blocks
38
- local _block_file
39
- local _block_files
40
37
41
38
42
39
[ ! -f " ${_device_type_json} " ] && echo " [balena_deploy_artifacts] Device type JSON not found" && return
@@ -50,20 +47,8 @@ balena_deploy_artifacts () {
50
47
_yocto_build_deploy=" ${device_dir} /build/tmp/deploy/images/${_device_type} "
51
48
_slug=$( jq --raw-output ' .slug' " ${_device_type_json} " )
52
49
53
- if [ -z " ${_preserve_build} " ]; then
54
- if [ -n " ${blocks} " ]; then
55
- _tmp_dir=$( mktemp -d)
56
- for _block in ${blocks} ; do
57
- find " ${_deploy_dir} " -name " ${_device_type} -${_block} -*.docker" -exec mv -v {} " ${_tmp_dir} " \;
58
- done
59
- fi
60
- rm -rf " ${_deploy_dir} "
61
- fi
50
+ [ -z " ${_preserve_build} " ] && rm -rf " ${_deploy_dir} "
62
51
mkdir -p " ${_deploy_dir} /image"
63
- if [ -d " ${_tmp_dir} " ]; then
64
- mv " ${_tmp_dir} " /* " ${_deploy_dir} "
65
- rm -rf " ${_tmp_dir} "
66
- fi
67
52
68
53
cp -v " $_device_type_json " " $_deploy_dir /device-type.json"
69
54
if [ " ${_device_state} " = " DISCONTINUED" ]; then
You can’t perform that action at this time.
0 commit comments