Changeset 1228 for dass-tools
- Timestamp:
- Dec 5, 2016, 4:31:09 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dass-tools/usr/bin/reposync-mirror-update.sh
r1227 r1228 6 6 7 7 set -o errexit -o nounset 8 9 REPOSYNC_FAILED="" 8 10 9 11 if [ -r /etc/dass-it/reposync.conf ]; then … … 75 77 76 78 # exit on errors 77 LOG=$(reposync --config $REPO_FILE --cachedir=$CACHEDIR --delete) 78 79 if grep "Downloading\|Removing" <<< "$LOG"; then 79 if ! LOG=$(reposync --config $REPO_FILE --cachedir=$CACHEDIR --delete); then 80 81 printf "FAILED: reposync failed:\n%s" "$LOG" >&2 82 REPOSYNC_FAILED="${REPOSYNC_FAILED}${DIR} " 83 84 elif grep "Downloading\|Removing" <<< "$LOG"; then 80 85 81 86 test -L $NAME && rm $NAME … … 102 107 rm -r $TMPDIR 103 108 104 echo 105 echo "$ME: done" 109 printf "\n\n" 110 111 if [ "$REPOSYNC_FAILED" ]; then 112 printf "$ME failed on:\n%s\n" "$REPOSYNC_FAILED" 113 exit 1 114 fi 115 116 printf "$ME: done\n"
Note:
See TracChangeset
for help on using the changeset viewer.