1
0
Fork 0
mirror of https://github.com/Luzifer/password.git synced 2024-11-08 09:20:06 +00:00

Fix: RawGit is closing down, use Github URL

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-12-30 13:44:08 +01:00
parent baa5d41ba0
commit 95e47e193f
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -1,21 +1,19 @@
#!/bin/bash
set -euo pipefail
set -eu
set -o pipefail
version="8744120d"
source="https://raw.githubusercontent.com/leonardr/olipy/${version}/data/more-corpora/scribblenauts_words.txt"
VERSION="8744120d"
SOURCE="https://cdn.rawgit.com/leonardr/olipy/${VERSION}/data/more-corpora/scribblenauts_words.txt"
words=$(curl -sL "${source}" | awk '/^[a-z]{4}[a-z]*$/{ print "\""$1"\"," }')
WORDS=$(curl -sL "${SOURCE}" | awk '/^[a-z]{4}[a-z]*$/{ print "\""$1"\"," }')
cat -s <<EOF > lib/xkcd_words.go
cat -s <<EOF >lib/xkcd_words.go
package securepassword
// xkcdWordList contains a list of words derived from the scribblenauts
// word list inside the olipy library by leonardr
// https://github.com/leonardr/olipy
var xkcdWordList = []string{
${WORDS}
${words}
}
EOF