Skip to content

Commit 9f91aee

Browse files
committed
Fix unbound variable.
1 parent 94c020c commit 9f91aee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build-docker-image.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ run() {
99
local dockerfile="Dockerfile.${1}"
1010
local image_name="rustembedded/cross:${1}"
1111

12+
local cache_from_args=()
13+
1214
if docker pull "${image_name}"; then
13-
local cache_from_args=(--cache-from "${image_name}")
15+
cache_from_args=(--cache-from "${image_name}")
1416
fi
1517

1618
docker build ${cache_from_args[@]} --pull -t "${image_name}" -f "${dockerfile}" .

0 commit comments

Comments
 (0)