From 0bb1ba2853843c207ad5086d46edb77620bce814 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Mon, 28 Sep 2020 15:06:43 -0400 Subject: [PATCH] send to dev/null to prevent output --- setup/so-functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/so-functions b/setup/so-functions index 214d02294..2c028174a 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -741,12 +741,12 @@ detect_os() { disable_auto_start() { - if crontab -l | grep so-setup; then + if crontab -l | grep so-setup > /dev/null 2>&1; then # Remove the automated setup script from crontab, if it exists logCmd "crontab -u $INSTALLUSERNAME -r" fi - if grep so-setup /home/$INSTALLUSERNAME/.bash_profile; then + if grep so-setup /home/$INSTALLUSERNAME/.bash_profile > /dev/null 2>&1; then # Truncate last line of the bash profile info "Removing auto-run of setup from bash profile" sed -i '$ d' /home/$INSTALLUSERNAME/.bash_profile >> "$setup_log" 2>&1