mirror of
https://github.com/Luzifer/password.git
synced 2024-12-20 12:51:17 +00:00
Fix: RawGit is closing down, use Github URL
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
baa5d41ba0
commit
95e47e193f
1 changed files with 6 additions and 8 deletions
|
@ -1,12 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
set -eu
|
version="8744120d"
|
||||||
set -o pipefail
|
source="https://raw.githubusercontent.com/leonardr/olipy/${version}/data/more-corpora/scribblenauts_words.txt"
|
||||||
|
|
||||||
VERSION="8744120d"
|
words=$(curl -sL "${source}" | awk '/^[a-z]{4}[a-z]*$/{ print "\""$1"\"," }')
|
||||||
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"\"," }')
|
|
||||||
|
|
||||||
cat -s <<EOF >lib/xkcd_words.go
|
cat -s <<EOF >lib/xkcd_words.go
|
||||||
package securepassword
|
package securepassword
|
||||||
|
@ -15,7 +13,7 @@ package securepassword
|
||||||
// word list inside the olipy library by leonardr
|
// word list inside the olipy library by leonardr
|
||||||
// https://github.com/leonardr/olipy
|
// https://github.com/leonardr/olipy
|
||||||
var xkcdWordList = []string{
|
var xkcdWordList = []string{
|
||||||
${WORDS}
|
${words}
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue