From 95e47e193fba3ef0e14cf0f27aa01534800eca46 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sun, 30 Dec 2018 13:44:08 +0100 Subject: [PATCH] Fix: RawGit is closing down, use Github URL Signed-off-by: Knut Ahlers --- generateXKCDWordList.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/generateXKCDWordList.sh b/generateXKCDWordList.sh index e0ff832..8df30ee 100644 --- a/generateXKCDWordList.sh +++ b/generateXKCDWordList.sh @@ -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 < lib/xkcd_words.go +cat -s <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