Style correction for 4a9f4d3145
This commit is contained in:
@@ -19,10 +19,11 @@ srcdir="$_where"
|
||||
|
||||
# Command used for superuser privileges (`sudo`, `doas`, `su`)
|
||||
if [ ! -x "$(command -v sudo)" ]; then
|
||||
if [ -x "$(command -v doas)" ]; then sudo() { doas "$@"; }
|
||||
elif [ -x "$(command -v su)" -a -x "$(command -v xargs)" ]; then
|
||||
sudo() { echo "$@" | xargs -I {} su -c '{}'; }
|
||||
fi
|
||||
if [ -x "$(command -v doas)" ]; then
|
||||
sudo() { doas "$@"; }
|
||||
elif [ -x "$(command -v su)" -a -x "$(command -v xargs)" ]; then
|
||||
sudo() { echo "$@" | xargs -I {} su -c '{}'; }
|
||||
fi
|
||||
fi
|
||||
|
||||
source customization.cfg
|
||||
|
Reference in New Issue
Block a user