Skip to content

Commit

Permalink
ci: fix new shellcheck v0.9.0 findings (#795)
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen authored Dec 13, 2022
1 parent 15197df commit 0150fcc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions image/mkosi.skeleton/usr/lib/udev/google_nvme_id
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0150fcc

Please sign in to comment.