Code review update

Change-Id: I384a73efe995c529fb4b3636cb9639eafb90787f
Signed-off-by: Joakim Roubert <joakimr@axis.com>
This commit is contained in:
Joakim Roubert
2020-04-24 10:22:50 +02:00
parent 80a8566a8c
commit 1f9704c713

View File

@@ -253,9 +253,7 @@ function get-or-generate-uuid(){
else else
# generate new uuid and add it to the map # generate new uuid and add it to the map
local myuuid local myuuid
myuuid=$(uuidgen) if ! myuuid=$(uuidgen); then
# shellcheck disable=SC2181
if [[ $? -ne 0 ]]; then
echo "Failed to generate valid UUID with uuidgen" >&2 echo "Failed to generate valid UUID with uuidgen" >&2
exit 2 exit 2
fi fi