From f6296c095f1f98763875700b9e4e2ebee7dc3577 Mon Sep 17 00:00:00 2001 From: William Wernert Date: Tue, 13 Oct 2020 15:00:00 -0400 Subject: [PATCH] [fix] Redirect stderr to stdout for crontab -l --- setup/so-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/so-functions b/setup/so-functions index b3304b372..06f103cfc 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -747,7 +747,7 @@ detect_os() { disable_auto_start() { - if crontab -l | grep so-setup > /dev/null 2>&1; then + if crontab -l 2>&1 | grep so-setup > /dev/null 2>&1; then # Remove the automated setup script from crontab, if it exists logCmd "crontab -u $INSTALLUSERNAME -r" fi