make basic quote function work
This commit is contained in:
parent
878314578a
commit
5cae84d2ef
2 changed files with 3 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1 +1,2 @@
|
|||
quotes.json
|
||||
quotes.txt
|
||||
|
|
|
|||
4
main.sh
4
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue