ci: fix new shellcheck v0.9.0 findings (#795)

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2022-12-13 13:24:03 +01:00 committed by GitHub
parent 15197dfbd0
commit 0150fcc22c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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