image_build: Fix. I don't know how this even worked before, it really should not have.
This commit is contained in:
parent
d2b6df03a5
commit
bc87f6d7e2
1 changed files with 8 additions and 5 deletions
|
|
@ -354,6 +354,7 @@ __process_scripts() {
|
||||||
export FILE_HASH="$(
|
export FILE_HASH="$(
|
||||||
{
|
{
|
||||||
md5sum "${__source_file}"
|
md5sum "${__source_file}"
|
||||||
|
"${__source_file}" -d
|
||||||
"${__source_file}" -d | sort | while read -r __file; do
|
"${__source_file}" -d | sort | while read -r __file; do
|
||||||
md5sum "${__file}"
|
md5sum "${__file}"
|
||||||
done
|
done
|
||||||
|
|
@ -402,22 +403,24 @@ __get_hash_file() {
|
||||||
|
|
||||||
__check_file() {
|
__check_file() {
|
||||||
|
|
||||||
__hash_file="$(__get_hash_file "${1}")"
|
__source="${1}"
|
||||||
|
|
||||||
shift
|
shift
|
||||||
|
|
||||||
|
__hash_file="$(__get_hash_file "${__source}")"
|
||||||
|
|
||||||
__targets=''
|
__targets=''
|
||||||
|
|
||||||
if [ "${#}" == '0' ]; then
|
if [ "${#}" == '0' ]; then
|
||||||
|
|
||||||
__targets="$(sed 's|^\./src/|./|' <<<"${1}")"
|
__targets="$(sed 's|^\./src/|./|' <<<"${__source}")"
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
until [ "${#}" == '0' ]; do
|
until [ "${#}" == '0' ]; do
|
||||||
|
|
||||||
__targets="${__target}
|
__targets="${1}
|
||||||
${1}"
|
${__targets}"
|
||||||
|
|
||||||
shift
|
shift
|
||||||
|
|
||||||
|
|
@ -431,7 +434,7 @@ ${1}"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done < <(sed '/^$/d' <<< "${__targets}")
|
||||||
|
|
||||||
if [ -e "${__hash_file}" ]; then
|
if [ -e "${__hash_file}" ]; then
|
||||||
__file_hash="$(cat "${__hash_file}")"
|
__file_hash="$(cat "${__hash_file}")"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue