mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-28 15:54:19 +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"
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user