From 0150fcc22cd4dd50e33066cf66e4a3d555836ae0 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 13 Dec 2022 13:24:03 +0100 Subject: [PATCH] ci: fix new shellcheck v0.9.0 findings (#795) Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- image/mkosi.skeleton/usr/lib/udev/google_nvme_id | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/image/mkosi.skeleton/usr/lib/udev/google_nvme_id b/image/mkosi.skeleton/usr/lib/udev/google_nvme_id index 985fe7306..85ca3dd77 100755 --- a/image/mkosi.skeleton/usr/lib/udev/google_nvme_id +++ b/image/mkosi.skeleton/usr/lib/udev/google_nvme_id @@ -228,8 +228,9 @@ script as root/with sudo)." # Fill the global variables for the id command for the given disk type # Error messages will be printed closer to error, no need to reprint here identify_pd_disk "${device_path}" - if [[ $? -ne 0 ]]; then - return $? + ret=$? + if [[ ${ret} -ne 0 ]]; then + return "${ret}" fi # Gen symlinks or print out the globals set by the identify command