From 03a0c5d2f21c55a42932f549b94839d6ba6e2238 Mon Sep 17 00:00:00 2001 From: Jeff Eberl Date: Sat, 30 Nov 2019 15:08:16 -0700 Subject: [PATCH] Change cmds count to always be right. --- installers/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installers/common.sh b/installers/common.sh index c798fdf9..9cfedc31 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -327,7 +327,7 @@ function patch_system_files() { ) # Check if sudoers needs patching - if [ $(sudo grep -c $raspap_user /etc/sudoers) -ne 28 ] + if [ $(sudo grep -c $raspap_user /etc/sudoers) -ne ${#cmds[@]} ] then # Sudoers file has incorrect number of commands. Wiping them out. install_log "Cleaning system sudoers file"