fixed fortune detection

moveTools
Adam Veldhousen 9 years ago
parent 9509deb3ad
commit 50977d0e39
Signed by: adam
GPG Key ID: 6DB29003C6DD1E4B

@ -19,7 +19,7 @@ function printmotd(){
if [[ -f $GOPATH/bin/fortune ]]; then if [[ -f $GOPATH/bin/fortune ]]; then
echo "" echo ""
$GOPATH/bin/fortune -file="$GOPATH/bin/fortunes.txt" $GOPATH/bin/fortune -file="$GOPATH/bin/fortunes.txt"
elif [[ -f $(fortune) ]]; then elif [[ -f $(which fortune) ]]; then
echo "" echo ""
fortune fortune
fi fi

Loading…
Cancel
Save