Skip to content

Commit

Permalink
Update script fetches
Browse files Browse the repository at this point in the history
  • Loading branch information
rbamos committed Jul 11, 2024
1 parent bcd62a3 commit 79b6668
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ if [[ "$kernel_name" != 'Darwin' ]] && [[ "$kernel_name" != 'Linux' ]]; then
fi

# If run from a curl | bash, curl | bash utils, otherwise look locally
if [[ "$0" == "bash" ]]; then
curl 'https://github.com/panorama-ed/leapp-setup/blob/main/utils.sh' | bash
if [[ ! -e "utils.sh" ]]; then
eval "$(curl -Ls 'https://github.com/panorama-ed/leapp-setup/blob/main/utils.sh')"
else
. ./utils.sh
fi
Expand Down Expand Up @@ -109,6 +109,7 @@ else [[ "$kernel_name" == "Linux" ]]
# Whenever a new Leapp version is updated, this link will break
curl https://asset.noovolari.com/latest/Leapp_0.26.1_amd64.deb -o ~/Downloads/leapp.deb
sudo dpkg -i ~/Downloads/leapp.deb
sudo mv /usr/bin/leapp /usr/bin/leapp-desktop
fi
curl -fsSL https://deb.nodesource.com/setup_22.x -o ~/Downloads/nodesource_setup.sh
sudo bash ~/Downloads/nodesource_setup.sh
Expand Down Expand Up @@ -136,9 +137,8 @@ while true; do
esac
done

# Check if this is being run from a eval $(curl)
if [[ "$0" == "eval" ]]; then
curl 'https://github.com/panorama-ed/leapp-setup/blob/main/config.sh' | bash
if [[ ! -e "config.sh" ]]; then
eval "$(curl -Ls 'https://github.com/panorama-ed/leapp-setup/blob/main/config.sh')"
else
. ./config.sh
fi

0 comments on commit 79b6668

Please sign in to comment.