1
0
mirror of https://github.com/the-sane/lug-helper.git synced 2025-05-10 17:18:28 +00:00

These are numbers, not strings

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

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