Changeset 1204a45


Ignore:
Timestamp:
07/23/15 11:55:22 (7 days ago)
Author:
Kris Moore <kris@…>
Branches:
master
Children:
a17dc61
Parents:
6fd7928
Message:

Update some of the messages when updating pbicage index files, and
make sure we recover if there was a git clone gone bad

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pbi-manager/pbi-manager

    r6fd7928 r1204a45  
    11541154 
    11551155        # If the DB dir doesn't exist, time to checkout 
    1156         if [ ! -d "${PBI_DBCAGEINDEXDIR}" ] ; then 
     1156        if [ ! -e "${PBI_DBCAGEINDEXDIR}/README.md" ] ; then 
    11571157                echo "Checking out latest pbicage index..." 
    1158                 mkdir -d ${PBI_DBCAGEINDEXDIR} 
     1158                if [ ! -d "${PBI_DBCAGEINDEXDIR}" ] ; then 
     1159                        mkdir -d ${PBI_DBCAGEINDEXDIR}  
     1160                fi 
    11591161                git clone --depth=1 ${PBI_CAGEGITURL} ${PBI_DBCAGEINDEXDIR} >/dev/null 2>/dev/null 
    11601162                if [ $? -ne 0 ] ; then 
    11611163                        echo "WARNING: Failed getting pbicage index..." 
     1164                else 
     1165                        echo "pbicage index is up-to-date." 
    11621166                fi 
    11631167        else 
     
    11681172                if [ $? -ne 0 ] ; then 
    11691173                        echo "WARNING: Failed updating pbicage index..." 
     1174                else 
     1175                        echo "pbicage index is up-to-date." 
    11701176                fi 
    11711177        fi 
Note: See TracChangeset for help on using the changeset viewer.