Browse files

profile: check file existence, not string length

  • Loading branch information...
1 parent 629a501 commit 150da7ab7769695c65aff45bb536f14f0b919867 @falconindy committed Apr 23, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 .profile
View
2 .profile
@@ -8,5 +8,5 @@ export PAGER=less
PATH=$HOME/bin:$PATH
export CDPATH=.:/mnt/Gluttony:/mnt/Haven
-[ -n ~/.profile."$HOSTNAME" ] && . ~/.profile."$HOSTNAME"
+[ -f ~/.profile."$HOSTNAME" ] && . ~/.profile."$HOSTNAME"
[ -n $BASH -a -r ~/.bashrc ] && . ~/.bashrc

0 comments on commit 150da7a

Please sign in to comment.