fix conditional

This commit is contained in:
AJ ONeal 2018-06-05 00:09:24 -06:00
parent ffc045ab43
commit 570c64f104
1 changed files with 1 additions and 1 deletions

View File

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