function in .profile causes problems with log-in
When I add the following function definition to .profile, it becomes impossible for me to log-in through the display manager after restart. The log-in screen sends me back to the log-in screen, indefinitely. I can ctr-alt-F1 to tty1.
What am I doing wrong? Why would that happen? I am running Quantal, although my signature may indicate otherwise. Thanks.
Code:
sgy-project() {
if [ -d "$HOME/jhsph" ] ; then
if [ "$1" = "seq" ] ; then
if [ -d "/home/sgy/jhsph/targeted-sequencing/" ] ; then
export WORKDIR="/home/sgy/jhsph/targeted-sequencing/"
else
echo "project directory does not exist"
export WORKDIR="/home/sgy/"
fi
fi
else
echo "jhsph is not mounted"
export WORKDIR="/home/sgy/"
fi
}
System76 Wild Dog Performance - Ubuntu Quantal - 64 bit
Intel Core i7-2600, 3.40 GHz - 16 GB DDR3 RAM
NVIDIA GeForce GT430, 1GB DDR3
Intel SSD 510 Series, 120 GB SATA III
Bookmarks