From 569e3799fe74651ad86741428470984d3850c9ce Mon Sep 17 00:00:00 2001 From: Brielle Date: Sat, 27 Feb 2016 15:07:25 -0700 Subject: [PATCH] Fixing a few things... --- get-letsencrypt.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/get-letsencrypt.sh b/get-letsencrypt.sh index 0a6995d..5303f36 100755 --- a/get-letsencrypt.sh +++ b/get-letsencrypt.sh @@ -17,17 +17,17 @@ ZIPURL="https://github.com/letsencrypt/letsencrypt/archive/master.zip" GITREPO="https://github.com/letsencrypt/letsencrypt" if [ $# -eq 0 ]; then - echo "Command Help:" - echo "-g : download using git from master repo" - echo "-z : download zip from main repo and extract" + echo "Command Help:" + echo "-g : download using git from master repo" + echo "-z : download zip from main repo and extract" exit 0 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,10 +35,12 @@ 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 - ;; + ;; esac \ No newline at end of file