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.json
|
||||||
|
quotes.txt
|
||||||
|
|
|
||||||
4
main.sh
4
main.sh
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue