From 60bc9b2f9f82dff7f555d6db8845ba227c312531 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Wed, 21 Sep 2022 19:28:50 +0200 Subject: [PATCH] Style correction for 4a9f4d3145c1ff63b09072663829c166bb524571 --- install.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index ace98de..9fde447 100755 --- a/install.sh +++ b/install.sh @@ -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