diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-11-13 11:29:57 (EST) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-11-13 11:29:57 (EST) |
commit | ba838f7d549ca3e60803edbb93c4556a6358cbd2 (patch) | |
tree | 66684c7fa8d16d1ae571ce902b6b139d94808869 /scripts | |
parent | c44f5a5a80187b57d86c391f207320d0863bc28a (diff) | |
download | marquee-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-x | scripts/update-prism.sh | 4 |
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 } |