Skip to content

Commit 40902cc

Browse files
author
Kristan Kenney
committed
Add download_file function to main.sh
This is a trigger for wget with progress-bar only output.
1 parent 53e8d53 commit 40902cc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

func/main.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -949,3 +949,8 @@ check_backup_conditions() {
949949
la=$(cat /proc/loadavg |cut -f 1 -d ' ' |cut -f 1 -d '.')
950950
done
951951
}
952+
953+
# Define file download function
954+
download_file() {
955+
wget $1 -q --show-progress --progress=bar:force
956+
}

0 commit comments

Comments
 (0)