added download/unpack scripts

This commit is contained in:
2020-12-16 23:25:41 -05:00
parent 0a7f58d483
commit b81ce2e2c9
15 changed files with 167 additions and 0 deletions

13
scripts/download-url.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
# Usage: ./download.sh https://www.a.url/to/download filename_for_downloaded.file
# Usage: ./download.sh https://www.a.url/to/download filename_for_downloaded.file a_username a_password
URL=$1
FILENAME=$2
if [ "$#" -gt 2 ]; then
USERNAME=$3
PASSWORD=$4
curl -L -o "${FILENAME}" -u "${USERNAME}:${PASSWORD}" ${URL}
else
curl -L -o "${FILENAME}" ${URL}
fi