From fa74600e14335f39ff6d226618e4e125b8f439ac Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Mon, 2 Apr 2018 06:45:10 +0100 Subject: [PATCH] buildsystem: use single = not == --- scripts/get | 2 +- scripts/get_archive | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/get b/scripts/get index 320f7c4068..2e74d03151 100755 --- a/scripts/get +++ b/scripts/get @@ -32,7 +32,7 @@ function lock_source_dir() { local _isblocked=N exec 99<$SOURCES/$1 while ! flock --nonblock --exclusive 99; do - [ ${_isblocked} == N ] && { echo "Project/Device ${DEVICE:-${PROJECT}} waiting, to avoid concurrent processing of ${1}..."; _isblocked=Y; } + [ ${_isblocked} = N ] && { echo "Project/Device ${DEVICE:-${PROJECT}} waiting, to avoid concurrent processing of ${1}..."; _isblocked=Y; } sleep 1 done } diff --git a/scripts/get_archive b/scripts/get_archive index 3175baf2a7..f6f61f42a1 100755 --- a/scripts/get_archive +++ b/scripts/get_archive @@ -50,7 +50,7 @@ while [ $NBWGET -gt 0 ]; do if $WGET_CMD "$url"; then CALC_SHA256="$(sha256sum $PACKAGE | cut -d" " -f1)" - [ -z "${PKG_SHA256}" -o "${PKG_SHA256}" == "${CALC_SHA256}" ] && break 2 + [ -z "${PKG_SHA256}" -o "${PKG_SHA256}" = "${CALC_SHA256}" ] && break 2 printf "%${BUILD_INDENT}c $(print_color CLR_WARNING "WARNING") Incorrect checksum calculated on downloaded file: got ${CALC_SHA256}, wanted ${PKG_SHA256}\n\n" ' '>&$SILENT_OUT fi