mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-28 16:24:21 +00:00
These are numbers, not strings
This commit is contained in:
parent
8f86d37b88
commit
fdfd512bfc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user