From a8d1bed0aff6a25a4c1be2be6563e911c2f79aac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20K=C3=B6cher?= Date: Fri, 26 Sep 2014 15:44:06 +0200 Subject: [PATCH] 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 --- candi.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5