Fixing a few things...

master
Brie Bruns 2016-02-27 15:07:25 -07:00
parent 07a2e87985
commit 569e3799fe
1 changed files with 8 additions and 6 deletions

View File

@ -24,10 +24,10 @@ if [ $# -eq 0 ]; then
fi
while getopts "g:z:" opt; do
while getopts "gz" opt; do
case $opt in
g) downloadtype="git";;
t) downloadtype="zip";;
z) downloadtype="zip";;
esac
done
@ -35,9 +35,11 @@ cd ${DESTDIR}
case $downloadtype in
git)
echo "Cloning repo into ${DESTDIR}..."
git clone ${GITREPO}
;;
tar)
echo "Downloading ${ZIPURL} into ${DESTDIR}
curl -o letsencrypt.zip ${ZIPURL}
unzip letsencrypt.zip
;;