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