Changeset 1227 for dass-tools/usr/bin


Ignore:
Timestamp:
Dec 5, 2016, 4:08:42 PM (8 years ago)
Author:
joergs
Message:

let reposync-mirror-update.sh exit on error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dass-tools/usr/bin/reposync-mirror-update.sh

    r1215 r1227  
    7373    ln -s $DIR $NAME
    7474    CACHEDIR=`mktemp --directory --tmpdir=$TMPDIR`
    75     if reposync --config $REPO_FILE --cachedir=$CACHEDIR --delete | grep "Downloading\|Removing"; then
     75   
     76    # exit on errors
     77    LOG=$(reposync --config $REPO_FILE --cachedir=$CACHEDIR --delete)
     78   
     79    if grep "Downloading\|Removing" <<< "$LOG"; then
    7680
    7781      test -L $NAME && rm $NAME
Note: See TracChangeset for help on using the changeset viewer.