From fef37c72a2c759278826ef6aadf086966ebea3fb Mon Sep 17 00:00:00 2001 From: Mika Suomalainen Date: Tue, 16 Aug 2011 14:21:16 +0300 Subject: [PATCH] Added upgrade.sh --- upgrade.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 upgrade.sh diff --git a/upgrade.sh b/upgrade.sh new file mode 100644 index 00000000..7eb52f5c --- /dev/null +++ b/upgrade.sh @@ -0,0 +1,15 @@ +#!/bin/bash +echo "Backing up files..." +cat ~/.bash_exports > ~/.bash_exports.old.backup +cat ~/.bash_profile > ~/.bash_profile.old.backup +cat ~/.bash_aliases > ~/.bash_aliases.old.backup +cat ~/.bash_functions > ~/.bash_functions.old.backup +cat ~/.bashrc > ~/.bashrc.old.backup +echo "Installing new files..." +cat bash_exports > ~/.bash_exports +cat bash_profile > ~/.bash_profile +cat bash_aliases > ~/.bash_aliases +cat bash_functions > ~/.bash_functions +cat bashrc ~/.bashrc +echo "Installation has been completed. You might now need to source your ~/.bashrc for changes to +happen."