From: Uwe Köcher Date: Fri, 26 Sep 2014 13:44:06 +0000 (+0200) Subject: candi.sh: corrected bug in package_verify(): missing "[" X-Git-Tag: v0.4~55 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8d1bed0aff6a25a4c1be2be6563e911c2f79aac;p=candi.git candi.sh: corrected bug in package_verify(): missing "[" The bug causes e.g. svn = git = is not a valid svn/git command. The bug was a typo in the first if-clause. Changes to be committed: modified: candi.sh --- diff --git a/candi.sh b/candi.sh index bef8665..f96e2a6 100755 --- a/candi.sh +++ b/candi.sh @@ -119,7 +119,7 @@ package_fetch () { cd ${UNPACK_PATH} # Suitably clone or update git repositories if [ ! -d ${EXTRACTSTO} ]; then - git clone ${SOURCE}${NAME} + git clone ${SOURCE}${NAME} ${EXTRACTSTO} else cd ${EXTRACTSTO} git pull @@ -146,7 +146,7 @@ package_verify() { cd ${DOWNLOAD_PATH} # Only need to verify archives - if [ ${PACKING} = ".tar.bz2" ] || [ ${PACKING} = ".tar.gz" ] || [ ${PACKING} = ".tbz2" ] || ${PACKING} = ".tgz" ] || [ ${PACKING} = ".tar.xz" ] || [ ${PACKING} = ".zip" ]; then + if [ ${PACKING} = ".tar.bz2" ] || [ ${PACKING} = ".tar.gz" ] || [ ${PACKING} = ".tbz2" ] || [ ${PACKING} = ".tgz" ] || [ ${PACKING} = ".tar.xz" ] || [ ${PACKING} = ".zip" ]; then cecho ${GOOD} "Verifying ${NAME}${PACKING}" # Check checksum has been specified for the package