mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-20 04:26:25 +00:00
fix caddy bin location, generically remove leading 'v'
This commit is contained in:
@@ -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(/.*\//, '');
|
||||
}
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
###################
|
||||
|
||||
Reference in New Issue
Block a user