summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-13 11:29:57 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-11-13 11:29:57 (EST)
commitba838f7d549ca3e60803edbb93c4556a6358cbd2 (patch)
tree66684c7fa8d16d1ae571ce902b6b139d94808869 /scripts
parentc44f5a5a80187b57d86c391f207320d0863bc28a (diff)
downloadmarquee-ba838f7d549ca3e60803edbb93c4556a6358cbd2.zip
marquee-ba838f7d549ca3e60803edbb93c4556a6358cbd2.tar.gz
marquee-ba838f7d549ca3e60803edbb93c4556a6358cbd2.tar.bz2
scripts/update-prism.sh: Factor out URL base into variable
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update-prism.sh4
1 files changed, 3 insertions, 1 deletions
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
}