Fix check_meta_file_version calls

This commit is contained in:
Julian Ospald 2018-11-06 16:27:27 +08:00
parent 478dd40dcf
commit 5eee1b6d58
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
2 changed files with 5 additions and 2 deletions

View File

@ -6,6 +6,9 @@ edo()
"$@" || exit 2
}
edo rm .available-versions
edo rm .download-urls
# install GHCs
edo ./ghcup -v install 8.2.2
edo ./ghcup -v install 8.4.3

4
ghcup
View File

@ -969,7 +969,7 @@ get_meta_version_file() {
) || die "downloading failed"
fi
check_meta_file_version "${meta_file_name}" "${META_VERSION_FORMAT}"
check_meta_file_version "${meta_filepath}" "${META_VERSION_FORMAT}"
printf "%s" "${meta_filepath}"
@ -996,7 +996,7 @@ get_meta_download_file() {
) || die "downloading failed!"
fi
check_meta_file_version "${meta_file_name}" "${META_DOWNLOAD_FORMAT}"
check_meta_file_version "${meta_filepath}" "${META_DOWNLOAD_FORMAT}"
printf "%s" "${CACHE_LOCATION}/${meta_file_name}"