Style correction for 4a9f4d3145

This commit is contained in:
Tk-Glitch
2022-09-21 19:28:50 +02:00
parent 4a9f4d3145
commit 60bc9b2f9f

View File

@@ -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