Internal - supressing errors when directory for hasing is not present

This commit is contained in:
Igor Pecovnik 2020-08-31 17:36:30 +02:00
parent 5a6af1e761
commit 7dc3ae8ae1

View File

@ -208,7 +208,7 @@ function check_hash()
[[ -z $LINUXFAMILY ]] && LINUXFAMILY=$BOARDFAMILY
[[ -z ${KERNELPATCHDIR} ]] && KERNELPATCHDIR=$LINUXFAMILY-$BRANCH
[[ -z ${LINUXCONFIG} ]] && LINUXCONFIG=linux-$LINUXFAMILY-$BRANCH
hash_watch_1=$(find "${SRC}/patch/kernel/${KERNELPATCHDIR}" -maxdepth 1 -printf '%s %P\n' | sort 2> /dev/null)
hash_watch_1=$(find "${SRC}/patch/kernel/${KERNELPATCHDIR}" -maxdepth 1 -printf '%s %P\n' 2> /dev/null | sort)
hash_watch_2=$(cat "${SRC}/config/kernel/${LINUXCONFIG}.config")
patch_hash=$(echo "${hash_watch_1}${hash_watch_2}" | git hash-object --stdin)