From 5cae84d2eff7d768690489266f9248f8779e1f4f Mon Sep 17 00:00:00 2001 From: haui Date: Fri, 30 Jan 2026 12:37:03 +0100 Subject: [PATCH] make basic quote function work --- .gitignore | 1 + main.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 3bc03a2..4fe0dc9 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ quotes.json +quotes.txt diff --git a/main.sh b/main.sh index 9f07707..6e62af4 100755 --- a/main.sh +++ b/main.sh @@ -1,8 +1,8 @@ #!/bin/sh #if json quote list exist -if [ -f ./quotes.json ]; then -#echo "file exists!" +if [ -f "./quotes.txt" ]; then +shuf -n 1 ./quotes.txt else echo "file does not exist!" fi