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.json
quotes.txt

View file

@ -1,8 +1,8 @@
#!/bin/sh #!/bin/sh
#if json quote list exist #if json quote list exist
if [ -f ./quotes.json ]; then if [ -f "./quotes.txt" ]; then
#echo "file exists!" shuf -n 1 ./quotes.txt
else else
echo "file does not exist!" echo "file does not exist!"
fi fi