Directly check exit code

This commit is contained in:
Jeremy Gardais 2019-11-26 09:55:26 +01:00
parent a1f811540f
commit 3bdaa0e451
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 2 additions and 2 deletions

View File

@ -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."
check_osd "${osd_id}"
if [ "${?}" = 0 ]; then
if check_osd "${osd_id}"
then
printf '%b\n' "True"
else
printf '%b\n' "False"