Merge remote-tracking branch 'remotes/origin/dev' into issue/2188

This commit is contained in:
m0duspwnens
2020-12-07 11:52:09 -05:00

View File

@@ -771,7 +771,7 @@ disable_auto_start() {
logCmd "crontab -u $INSTALLUSERNAME -r"
fi
if grep -q so-setup /home/$INSTALLUSERNAME/.bash_profile; then
if grep -s -q so-setup /home/$INSTALLUSERNAME/.bash_profile; 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