File tree Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ In order to use the `hugow` binary, you only need to download it and place it in
2020of your Hugo project.
2121
2222``` bash
23- curl -o hugow https://raw.githubusercontent. com/khos2ow/hugo-wrapper/master /hugow && chmod +x hugow
23+ curl -o hugow https://github. com/khos2ow/hugo-wrapper/releases/download/v1.0.2 /hugow && chmod +x hugow
2424```
2525
2626or
2727
2828``` bash
29- wget -O hugow https://raw.githubusercontent. com/khos2ow/hugo-wrapper/master /hugow && chmod +x hugow
29+ wget -O hugow https://github. com/khos2ow/hugo-wrapper/releases/download/v1.0.2 /hugow && chmod +x hugow
3030```
3131
3232## Upgrade Hugo Wrapper
Original file line number Diff line number Diff line change 1919# ------------------------------------------------------------------------------
2020
2121# ------------------------------------------------------------------------------
22- # Hugo Wrapper (v1.0.1 )
22+ # Hugo Wrapper (v1.0.2 )
2323#
2424# Hugo Wrapper is a POSIX-style shell script which acts as a wrapper to download
2525# and execute Hugo binary for your platform. It can be executed in variety of
3535
3636set -e
3737
38- VERSION_NUMBER=" v1.0.1 "
38+ VERSION_NUMBER=" v1.0.2 "
3939
4040# hugo-wrapper command available flags
4141get_version=" "
281281# ------------------------------------------------------------------------------
282282if [ " $upgrade " = true ]; then
283283 printf " downloading hugow binary ... "
284- $DOWNLOAD_COMMAND $DOWNLOAD_SILENT $DOWNLOAD_REDIRECT $DOWNLOAD_OUTPUT " hugow" " https://raw.githubusercontent.com/khos2ow/hugo-wrapper/master/hugow" &
284+
285+ latest_release=` $DOWNLOAD_COMMAND $DOWNLOAD_SILENT $DOWNLOAD_REDIRECT ${DOWNLOAD_OUTPUT} - https://api.github.com/repos/khos2ow/hugo-wrapper/releases/latest`
286+ versionToDownload=` parse_json " $latest_release " " tag_name" `
287+
288+ $DOWNLOAD_COMMAND $DOWNLOAD_SILENT $DOWNLOAD_REDIRECT $DOWNLOAD_OUTPUT " hugow" " https://github.com/khos2ow/hugo-wrapper/releases/download/${versionToDownload} /hugow" &
285289 wait
286290 printf " [done]\n"
287291 chmod +x hugow
Original file line number Diff line number Diff line change 1919# ------------------------------------------------------------------------------
2020
2121# ------------------------------------------------------------------------------
22- # Hugo Wrapper (v1.0.1 )
22+ # Hugo Wrapper (v1.0.2 )
2323#
2424# Hugo Wrapper is a POSIX-style shell script which acts as a wrapper to download
2525# and execute Hugo binary for your platform. It can be executed in variety of
3535
3636set -e
3737
38- VERSION_NUMBER=" v1.0.1 "
38+ VERSION_NUMBER=" v1.0.2 "
3939
4040# hugo-wrapper command available flags
4141get_version=" "
281281# ------------------------------------------------------------------------------
282282if [ " $upgrade " = true ]; then
283283 printf " downloading hugow binary ... "
284- $DOWNLOAD_COMMAND $DOWNLOAD_SILENT $DOWNLOAD_REDIRECT $DOWNLOAD_OUTPUT " hugow" " https://raw.githubusercontent.com/khos2ow/hugo-wrapper/master/hugow" &
284+
285+ latest_release=` $DOWNLOAD_COMMAND $DOWNLOAD_SILENT $DOWNLOAD_REDIRECT ${DOWNLOAD_OUTPUT} - https://api.github.com/repos/khos2ow/hugo-wrapper/releases/latest`
286+ versionToDownload=` parse_json " $latest_release " " tag_name" `
287+
288+ $DOWNLOAD_COMMAND $DOWNLOAD_SILENT $DOWNLOAD_REDIRECT $DOWNLOAD_OUTPUT " hugow" " https://github.com/khos2ow/hugo-wrapper/releases/download/${versionToDownload} /hugow" &
285289 wait
286290 printf " [done]\n"
287291 chmod +x hugow
You can’t perform that action at this time.
0 commit comments