Skip to content

Commit

Permalink
Print error when downloading file error inside install script (#6874)
Browse files Browse the repository at this point in the history
* Print error when downloading file error inside install script
* Update install.sh.sha256sum

Signed-off-by: yhw <[email protected]>
  • Loading branch information
if-nil authored Jan 5, 2024
1 parent eae221f commit 102ff76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ get_k3s_selinux_version() {
# --- download from github url ---
download() {
[ $# -eq 2 ] || fatal 'download needs exactly 2 arguments'

set +e
case $DOWNLOADER in
curl)
curl -o $1 -sfL $2
Expand All @@ -429,6 +429,7 @@ download() {

# Abort if download command failed
[ $? -eq 0 ] || fatal 'Download failed'
set -e
}

# --- download hash from github url ---
Expand Down
2 changes: 1 addition & 1 deletion install.sh.sha256sum
Original file line number Diff line number Diff line change
@@ -1 +1 @@
151d816884423621b302cc3b429e71a29f8d0720608ffc16a7a6ae20570a50e4 install.sh
431c6fe653336279073e5b913557aa22d7ef1794b30b4f02002b4482910464d7 install.sh

0 comments on commit 102ff76

Please sign in to comment.