From ce24512596367001e74ff3931ecbdedcbdb6bb55 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 4 May 2020 17:50:52 +0000 Subject: [PATCH] fix caddy bin location, generically remove leading 'v' --- _common/normalize.js | 1 + caddy/caddy.bash | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/_common/normalize.js b/_common/normalize.js index f210aa3..302952f 100644 --- a/_common/normalize.js +++ b/_common/normalize.js @@ -35,6 +35,7 @@ var archMap = { function normalize(all) { all.releases.forEach(function (rel) { + rel.version = rel.version.replace(/^v/i, ''); if (!rel.name) { rel.name = rel.download.replace(/.*\//, ''); } diff --git a/caddy/caddy.bash b/caddy/caddy.bash index 652a05b..8540687 100644 --- a/caddy/caddy.bash +++ b/caddy/caddy.bash @@ -43,7 +43,7 @@ webi_extract pushd "$WEBI_TMP" 2>&1 >/dev/null echo Installing caddy v${WEBI_VERSION} as "$new_caddy" - mv ./caddy-*/caddy "$HOME/.local/bin/" + mv ./caddy "$HOME/.local/bin/" popd 2>&1 >/dev/null ################### -- 2.25.1