This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ ! -d /opt/Sublime* ]; then | |
if [ ! -f $HOME/Downloads/Sublime*.bz2 ]; then | |
echo "Ops! You must visit http://www.sublimetext.com/ and download the *.bz2 file to $HOME/Downloads." | |
exit | |
else | |
echo 'Installing Sublime Text...' | |
sudo mv $HOME/Downloads/Sublime*.bz2 /opt |