Switch back to direct command for removing setup from bash_profile due to how sed is interpreting the quoted expression

This commit is contained in:
Jason Ertel
2020-08-20 13:11:53 -04:00
parent 073a175939
commit 377c841c31

View File

@@ -714,7 +714,8 @@ disable_auto_start() {
logCmd "crontab -u $INSTALLUSERNAME -r" logCmd "crontab -u $INSTALLUSERNAME -r"
# Truncate last line of the bash profile # Truncate last line of the bash profile
logCmd "sed -i '$ d' /home/$INSTALLUSERNAME/.bash_profile" info "Removing auto-run of setup from bash profile"
sed -i '$ d' /home/$INSTALLUSERNAME/.bash_profile >> "$setup_log" 2>&1
} }