Fix shellcheck problems

Change-Id: I277fd923f62aa5888d7e18c89471909732da30e5
Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
Tony Sarajärvi
2024-02-13 08:19:00 +00:00
parent ebdea5a794
commit f074859391
15 changed files with 33 additions and 34 deletions

View File

@@ -50,7 +50,7 @@ VerifyHash () {
*) echo "FATAL! Unknown hash length: $hashLength" 1>&2 ;;
esac | cut -d ' ' -f 1`
if [ -z $hash ] || [ ! "$expectedHash" = "$hash" ]
if [ -z "$hash" ] || [ ! "$expectedHash" = "$hash" ]
then
echo "FAIL! wrong file hash: $file $hash" 1>&2
return 1