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
# generate new uuid and add it to the map
local myuuid
myuuid=$(uuidgen)
# shellcheck disable=SC2181
if [[ $? -ne 0 ]]; then
if ! myuuid=$(uuidgen); then
echo "Failed to generate valid UUID with uuidgen" >&2
exit 2
fi