chore(install): use CDN for unix

This commit is contained in:
Jan De Dobbeleer 2024-11-30 21:20:03 +01:00 committed by Jan De Dobbeleer
parent c63d0133f5
commit 6533280ff6

View file

@ -155,7 +155,7 @@ install_themes() {
zip_file="${cache_dir}/themes.zip"
url="https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/themes.zip"
url="https://cdn.ohmyposh.dev/releases/latest/themes.zip"
http_response=$(curl -s -f -L $url -o $zip_file -w "%{http_code}")
@ -191,9 +191,9 @@ install() {
info "\n Installing oh-my-posh for ${target} in ${install_dir}"
executable=${install_dir}/oh-my-posh
url=https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-${target}
url=https://cdn.ohmyposh.dev/releases/latest/posh-${target}
if [ "$version" ]; then
url=https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/${version}/posh-${target}
url=https://cdn.ohmyposh.dev/releases/${version}/posh-${target}
fi
info "⬇️ Downloading oh-my-posh from ${url}"