Skip to content

Commit

Permalink
buildsystem: use single = not ==
Browse files Browse the repository at this point in the history
  • Loading branch information
MilhouseVH committed Apr 2, 2018
1 parent fb6a497 commit fa74600
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/get
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/get_archive
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fa74600

Please sign in to comment.