From b01a05746125790347bf268a3c9b8654e2df4d19 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 23 Oct 2017 21:53:17 +0100 Subject: [PATCH] quote-get: Fix bug that caused it to output the same quote all the time --- quote-get | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quote-get b/quote-get index 09ae65c..ef7ffde 100755 --- a/quote-get +++ b/quote-get @@ -43,7 +43,7 @@ fi quote_count=$(cat "${quotes_cache_file}" | wc -l); # Set the random number generator seed to ensure we give the same quote on a per-day basis -RANDOM=$(date +%Y-%m-%d); +RANDOM=$(date +%Y%m%d); quote_line=$((( $RANDOM % ${quote_count} )));