Browse Source

Print error when downloading file error inside install script (#6874)

* Print error when downloading file error inside install script
* Update install.sh.sha256sum

Signed-off-by: yhw <2278069802@qq.com>
pull/9076/head
ifNil 11 months ago committed by GitHub
parent
commit
102ff76328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      install.sh
  2. 2
      install.sh.sha256sum

3
install.sh

@ -414,7 +414,7 @@ get_k3s_selinux_version() {
# --- download from github url --- # --- download from github url ---
download() { download() {
[ $# -eq 2 ] || fatal 'download needs exactly 2 arguments' [ $# -eq 2 ] || fatal 'download needs exactly 2 arguments'
set +e
case $DOWNLOADER in case $DOWNLOADER in
curl) curl)
curl -o $1 -sfL $2 curl -o $1 -sfL $2
@ -429,6 +429,7 @@ download() {
# Abort if download command failed # Abort if download command failed
[ $? -eq 0 ] || fatal 'Download failed' [ $? -eq 0 ] || fatal 'Download failed'
set -e
} }
# --- download hash from github url --- # --- download hash from github url ---

2
install.sh.sha256sum

@ -1 +1 @@
151d816884423621b302cc3b429e71a29f8d0720608ffc16a7a6ae20570a50e4 install.sh 431c6fe653336279073e5b913557aa22d7ef1794b30b4f02002b4482910464d7 install.sh

Loading…
Cancel
Save