Directly check exit code
This commit is contained in:
parent
a1f811540f
commit
3bdaa0e451
|
@ -25,8 +25,8 @@ while [ "${osd_id}" -lt "${osd_id_end}" ]; do
|
||||||
|
|
||||||
[ "${debug}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : Check if OSD ${osd_id} exists."
|
[ "${debug}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : Check if OSD ${osd_id} exists."
|
||||||
|
|
||||||
check_osd "${osd_id}"
|
if check_osd "${osd_id}"
|
||||||
if [ "${?}" = 0 ]; then
|
then
|
||||||
printf '%b\n' "True"
|
printf '%b\n' "True"
|
||||||
else
|
else
|
||||||
printf '%b\n' "False"
|
printf '%b\n' "False"
|
||||||
|
|
Loading…
Reference in New Issue