diff options
| author | Zach DeCook <zachdecook@librem.one> | 2022-10-17 18:30:53 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2022-10-17 18:30:53 -0500 |
| commit | ec407bc58b077b3b0837121d5719195b1c2cd6cc (patch) | |
| tree | 8fcc7204c36cc50c76d18634b73ded260246bc0b /getscriptures.sh | |
| parent | 90479b0ac1e990820e7a01ec58685b217f138d96 (diff) | |
| download | cgi-bin-ec407bc58b077b3b0837121d5719195b1c2cd6cc.tar.gz | |
get and slightly fix lsv
Diffstat (limited to 'getscriptures.sh')
| -rw-r--r-- | getscriptures.sh | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/getscriptures.sh b/getscriptures.sh index 5485c09..ec227b2 100644 --- a/getscriptures.sh +++ b/getscriptures.sh @@ -1,4 +1,16 @@ -wget https://ebible.org/Scriptures/engwebp_usfm.zip -mkdir -p webp -unzip engwebp_usfm.zip -d webp -rm engwebp_usfm.zip +#!/bin/sh +getweb() { + wget https://ebible.org/Scriptures/engwebp_usfm.zip + mkdir -p webp + unzip engwebp_usfm.zip -d webp + rm engwebp_usfm.zip +} +getlsv() { + url="$(wget -O - https://www.lsvbible.com/p/get-lsv.html | grep Plain\ Text | grep -o 'https://[^"]*' | sed 's/amp;//g')" + wget -O lsv.zip "$url" + unzip lsv.zip + mv 'The Holy Bible (LSV).txt' lsv.txt + rm lsv.zip +} +test -d webp || getweb +test -f lsv.txt || getlsv |
