These are numbers, not strings

This commit is contained in:
the-sane 2022-10-31 14:58:07 -04:00
parent 8f86d37b88
commit fdfd512bfc

View File

@ -240,7 +240,7 @@ try_exec() {
pkexec sh -c "$1"
# Check the return value
if [ "$?" -eq "126" ] || [ "$?" -eq "127" ]; then
if [ "$?" -eq 126 ] || [ "$?" -eq 127 ]; then
# User cancel or error
retval=1
fi
@ -248,7 +248,7 @@ try_exec() {
sudo sh -c "$1"
# Check the return value
if [ "$?" -eq "1" ]; then
if [ "$?" -eq 1 ]; then
# Error
retval=1
fi