fixed fortune detection
parent
9509deb3ad
commit
50977d0e39
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue