From ba838f7d549ca3e60803edbb93c4556a6358cbd2 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 13 Nov 2017 11:29:57 -0500 Subject: scripts/update-prism.sh: Factor out URL base into variable --- (limited to 'scripts') diff --git a/scripts/update-prism.sh b/scripts/update-prism.sh index 841cb08..1e95896 100755 --- a/scripts/update-prism.sh +++ b/scripts/update-prism.sh @@ -2,6 +2,8 @@ set -eu +URL_BASE='https://github.com/PrismJS/prism/raw/gh-pages' + download_files() { local file= @@ -9,7 +11,7 @@ download_files() for file in "${@}"; do file="${file#%reldir%/}" wget -O "$(dirname "${0}")/../data/resources/prism/${file}" \ - "https://github.com/PrismJS/prism/raw/gh-pages/${file}" + "${URL_BASE}/${file}" done } -- cgit v0.9.1