Skip to content

Commit

Permalink
Toolchain: Restore --no-check-certificate option
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed Mar 10, 2023
1 parent cf9aaa3 commit 409e5b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/toolchain/install_cp2k_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ while [ $# -ge 1 ]; do
export NPROCS_OVERWRITE="${1#-j}"
;;
--no-check-certificate)
export DOWNLOADER_FLAGS="-n"
export DOWNLOADER_FLAGS="--no-check-certificate"
;;
--install-all)
# set all package to the default installation status
Expand Down
3 changes: 2 additions & 1 deletion tools/toolchain/scripts/tool_kit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,8 @@ download_pkg_from_cp2k_org() {
local __filename="$2"
local __url="https://www.cp2k.org/static/downloads/$__filename"
# download
if ! wget --quiet $__url; then
echo "wget ${DOWNLOADER_FLAGS} --quiet $__url"
if ! wget ${DOWNLOADER_FLAGS} --quiet $__url; then
report_error "failed to download $__url"
return 1
fi
Expand Down

0 comments on commit 409e5b1

Please sign in to comment.