Skip to content

Commit

Permalink
chore(install): use CDN for unix
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Dec 1, 2024
1 parent c63d013 commit 6533280
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/static/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

Expand Down Expand Up @@ -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}"
Expand Down

0 comments on commit 6533280

Please sign in to comment.