From c86851d8985c49d4e050144040922b3467e4fb7a Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sat, 16 Feb 2019 06:53:49 +0100 Subject: [PATCH] Let's not overwrite .profile --- BuildFiles/Testing/scripts/rc-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BuildFiles/Testing/scripts/rc-install.sh b/BuildFiles/Testing/scripts/rc-install.sh index a5295ed6..83d2d578 100755 --- a/BuildFiles/Testing/scripts/rc-install.sh +++ b/BuildFiles/Testing/scripts/rc-install.sh @@ -22,8 +22,8 @@ fi # remove the autoexecuting commands, if there were # any before -if [ -f /home/rick/.profile ]; then - rm /home/rick/.profile +if [ -f /home/rick/.bash_profile ]; then + rm /home/rick/.bash_profile fi # detect if running as root already; if not, add sudo to @@ -43,7 +43,7 @@ $SUDO apt -y update $SUDO apt -y upgrade if [ -f /var/run/reboot-required ]; then - echo "./install-release-candidate.sh" > /home/rick/.profile + echo "./install-release-candidate.sh" > /home/rick/.bash_profile echo " " echo "After upgrading, a REBOOT is required to continue." echo "The script will continue when you ssh to the machine after reboot."