send to dev/null to prevent output

This commit is contained in:
m0duspwnens
2020-09-28 15:06:43 -04:00
parent 0944cd1bcd
commit 0bb1ba2853

View File

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