Browse Source

Add download_file function to installer

This is a trigger for wget with progress-bar only output.
Kristan Kenney 7 years ago
parent
commit
d8f350e4c2
2 changed files with 8 additions and 0 deletions
  1. 4 0
      install/hst-install-debian.sh
  2. 4 0
      install/hst-install-ubuntu.sh

+ 4 - 0
install/hst-install-debian.sh

@@ -86,6 +86,10 @@ help() {
     exit 1
 }
 
+# Define file download function
+download_file() {
+  wget $1 -q --show-progress --progress=bar:force
+}
 
 # Defining password-gen function
 gen_pass() {

+ 4 - 0
install/hst-install-ubuntu.sh

@@ -71,6 +71,10 @@ help() {
     exit 1
 }
 
+# Define file download function
+download_file() {
+  wget $1 -q --show-progress --progress=bar:force
+}
 
 # Defining password-gen function
 gen_pass() {