mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Check SU
This commit is contained in:
parent
910e521b3c
commit
0b18f84e06
1 changed files with 8 additions and 0 deletions
|
@ -1,5 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Set SU
|
||||
if [ $? -eq 1 ]
|
||||
then
|
||||
SU=doas
|
||||
else
|
||||
SU=sudo
|
||||
fi
|
||||
|
||||
exit_status=0
|
||||
|
||||
function check_exit_code() {
|
||||
|
|
Loading…
Reference in a new issue