From ee3a1882ae94352cca5c5d75d24f7f624e945f05 Mon Sep 17 00:00:00 2001 From: William Floyd Date: Sun, 5 Jul 2020 02:03:35 -0400 Subject: [PATCH] images_build: Fix for non-local variable. --- src/images_build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/images_build.sh b/src/images_build.sh index 967d44d..986df13 100755 --- a/src/images_build.sh +++ b/src/images_build.sh @@ -428,13 +428,15 @@ ${__targets}" fi + local __target + while read -r __target; do if ! [ -e "${__target}" ]; then return 1 fi - done < <(sed '/^$/d' <<< "${__targets}") + done < <(sed '/^$/d' <<<"${__targets}") if [ -e "${__hash_file}" ]; then __file_hash="$(cat "${__hash_file}")"