From 0ba0d7d08752bf1e75f54529de7bfe58c3cd5167 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 5 Jun 2018 00:09:24 -0600 Subject: [PATCH] fix conditional --- usr/share/install_helper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/share/install_helper.sh b/usr/share/install_helper.sh index 9b40232..025651d 100644 --- a/usr/share/install_helper.sh +++ b/usr/share/install_helper.sh @@ -51,7 +51,7 @@ read_cmd="read -u 3" # TODO detect if rsync is available and use rsync -a (more portable) rsync_cmd="cp -pPR" -if [ "root" == $(whoami) || 0 == $(id -u) ]; then +if [ "root" == $(whoami) ] || [ 0 == $(id -u) ]; then sudo_cmd=" " fi