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

11
scripts/unpack.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
# Usage: ./unpack.sh filename.zip
# Usage: ./unpack.sh filename.zip /home/user
FILENAME=$1
if [ "$#" -gt 1 ]; then
DESTPATH=$2
unzip -d ${DESTPATH} ${FILENAME}
else
unzip ${FILENAME}
fi