Fixed upgrade.sh.

This commit is contained in:
Mika Suomalainen 2011-08-16 14:39:39 +03:00
parent fef37c72a2
commit 68253e3c49
2 changed files with 3 additions and 5 deletions

View File

@ -1,6 +1,5 @@
#!/bin/bash #!/bin/bash
echo "If you are upgrading, press ctrl + c NOW! You have 15 seconds time to cancel this. echo "If you are upgrading, press ctrl + c NOW! You have 15 seconds time to cancel this. rerunning this script will overwrite your backups and it makes uninstall.sh useless."
re running this script will overwrite your backups and it makes uninstall.sh useless."
echo "Taking backups..." echo "Taking backups..."
touch ~/.bashrc # Creates .bashrc if you don't have one. touch ~/.bashrc # Creates .bashrc if you don't have one.
cat ~/.bashrc > ~/.bashrc.default.backup # Backups your current .bashrc cat ~/.bashrc > ~/.bashrc.default.backup # Backups your current .bashrc

5
upgrade.sh Normal file → Executable file
View File

@ -10,6 +10,5 @@ cat bash_exports > ~/.bash_exports
cat bash_profile > ~/.bash_profile cat bash_profile > ~/.bash_profile
cat bash_aliases > ~/.bash_aliases cat bash_aliases > ~/.bash_aliases
cat bash_functions > ~/.bash_functions cat bash_functions > ~/.bash_functions
cat bashrc ~/.bashrc cat bashrc > ~/.bashrc
echo "Installation has been completed. You might now need to source your ~/.bashrc for changes to echo "Installation has been completed. You might now need to source your ~/.bashrc for changes to happen."
happen."