Fortune added, but isn't working atm.
This commit is contained in:
parent
cedacca6f5
commit
cef3477e5c
@ -1,6 +1,14 @@
|
||||
-f functions.sh ] && source functions.sh
|
||||
[ -f functions.sh ] && source functions.sh
|
||||
|
||||
fortune=($fortune)
|
||||
unset fortune
|
||||
unset target
|
||||
fortune="$(command -v fortune)"
|
||||
if [ $# -ge 2 ]; then
|
||||
target="$3"
|
||||
fi
|
||||
|
||||
|
||||
msg $1 $fortune
|
||||
if [ -z "$fortune" ]; then
|
||||
msg "$2" "I do not have access to fortune."
|
||||
else
|
||||
msg "$2" "$($fortune -aesn 512 $target | tr '[:space:]' ' ' | sed -e 's/"/\"/g')"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user