Use local .available-versions and .download-urls

This commit is contained in:
Julian Ospald 2019-06-13 11:08:44 +08:00
parent a6aace4734
commit b45916a6c8
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
1 changed files with 5 additions and 3 deletions

View File

@ -6,13 +6,15 @@ edo()
"$@" || exit 2
}
GHCUP_META_DOWNLOAD_URL="file://$(pwd)/.download-urls"
export GHCUP_META_DOWNLOAD_URL
GHCUP_META_VERSION_URL="file://$(pwd)/.available-versions"
export GHCUP_META_VERSION_URL
# dependencies
edo sudo apt-get update -y
edo sudo apt-get install -y libnuma-dev
edo rm .available-versions
edo rm .download-urls
# install GHCs
edo ./ghcup -v install 8.2.2
edo ./ghcup -v install 8.4.3