[fix] Redirect stderr to stdout for crontab -l

This commit is contained in:
William Wernert
2020-10-13 15:00:00 -04:00
parent 15ea152b84
commit f6296c095f

View File

@@ -747,7 +747,7 @@ detect_os() {
disable_auto_start() { 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 # Remove the automated setup script from crontab, if it exists
logCmd "crontab -u $INSTALLUSERNAME -r" logCmd "crontab -u $INSTALLUSERNAME -r"
fi fi