mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
Code review update
Change-Id: I384a73efe995c529fb4b3636cb9639eafb90787f Signed-off-by: Joakim Roubert <joakimr@axis.com>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user