]> https://gitweb.dealii.org/ - candi.git/commitdiff
candi.sh: corrected bug in package_verify(): missing "["
authorUwe Köcher <koecher@hsu-hamburg.de>
Fri, 26 Sep 2014 13:44:06 +0000 (15:44 +0200)
committerUwe Köcher <koecher@hsu-hamburg.de>
Fri, 26 Sep 2014 13:44:06 +0000 (15:44 +0200)
  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

index bef8665ccfcee4464e8a16f77fbf1e9b57519a8d..f96e2a696361073ecbacf402c6b29198f0e3ff58 100755 (executable)
--- 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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.