From 50977d0e396f31d2ef5faaf103d7e2469a72bce1 Mon Sep 17 00:00:00 2001 From: Adam Veldhousen Date: Tue, 8 Dec 2015 16:02:07 -0600 Subject: [PATCH] fixed fortune detection --- .bash_functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bash_functions b/.bash_functions index 23c5048..ec632fa 100644 --- a/.bash_functions +++ b/.bash_functions @@ -19,7 +19,7 @@ function printmotd(){ if [[ -f $GOPATH/bin/fortune ]]; then echo "" $GOPATH/bin/fortune -file="$GOPATH/bin/fortunes.txt" - elif [[ -f $(fortune) ]]; then + elif [[ -f $(which fortune) ]]; then echo "" fortune fi