diff --git a/quote-get b/quote-get index ef7ffde..af59662 100755 --- a/quote-get +++ b/quote-get @@ -7,7 +7,7 @@ if [[ "$#" -lt "1" ]]; then echo -e "Quote generation tool" echo -e "By Starbeamrainbowlabs" echo -e "" - echo -e "Downloads and caches a quote file and picks out a random (per day) quote." + echo -e "Downloads and caches a quote file and picks out a random quote." echo -e "" echo -e "Usage:" echo -e " quote-get {quote-file-url}" @@ -47,4 +47,4 @@ RANDOM=$(date +%Y%m%d); quote_line=$((( $RANDOM % ${quote_count} ))); -sed -n ${quote_line}p "${quotes_cache_file}"; +cat "${quotes_cache_file}" | shuf -n1 --random-source=/dev/urandom;