make basic quote function work

This commit is contained in:
haui 2026-01-30 12:37:03 +01:00
parent 878314578a
commit 5cae84d2ef
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
quotes.json
quotes.txt

View file

@ -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