I don't know what I'm doing wrong. I am new to writing bash scripts. Anyone care to help?
I'm getting this error
[CODE#]!/bin/bash./facebook: line 45: syntax error: unexpected end of file
#Installs fbcmd to /usr/lib/fbcmd
aptitude install php5-cli
#make new directory for installation
wget http://www.cs.ubc.ca/~davet/fbcmd/fbcmd-0-90.tgz /usr/lib/fbcmd
tar -xvf /usr/lib/fbcmd
#Get AUTH code
firefox http://www.facebook.com/code_gen.php?v=1.0&api_key=d96ea311638cf65f04b33c8 7eacf371e
#Ask for AUTH code
echo -n "What is your AUTH code?"
#Enters AUTH code
php /usr/lib/fbcmd.php $ANSWER
#Asks for user name
echo - "What is your user name on this Linux computer?"
#Check .bash_aliases existence
echo - "Do you have a .bash_aliases file in your home directory?(y/n)"
then touch /home/$NAME/.bash_aliases.file
#Sets "facebook" alias
echo "alias facebook='php /usr/lib/fbcmd.php'" >> /home/$NAME/.bash_aliases