Skip to content

Commit d8f350e

Browse files
author
Kristan Kenney
committed
Add download_file function to installer
This is a trigger for wget with progress-bar only output.
1 parent 970726a commit d8f350e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

install/hst-install-debian.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ help() {
8686
exit 1
8787
}
8888

89+
# Define file download function
90+
download_file() {
91+
wget $1 -q --show-progress --progress=bar:force
92+
}
8993

9094
# Defining password-gen function
9195
gen_pass() {

install/hst-install-ubuntu.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ help() {
7171
exit 1
7272
}
7373

74+
# Define file download function
75+
download_file() {
76+
wget $1 -q --show-progress --progress=bar:force
77+
}
7478

7579
# Defining password-gen function
7680
gen_pass() {

0 commit comments

Comments
 (0)