Pruning stop looping
This commit is contained in:
@@ -112,10 +112,6 @@ check(){
|
|||||||
ok "Repository $REPOSITORY passed integrity check!"
|
ok "Repository $REPOSITORY passed integrity check!"
|
||||||
info "Current snapshots:"
|
info "Current snapshots:"
|
||||||
restic -r b2:"$REPOSITORY" snapshots | tee -a $LOG
|
restic -r b2:"$REPOSITORY" snapshots | tee -a $LOG
|
||||||
if [[ -n $PRUNE ]]; then
|
|
||||||
info "prune is called for; cleaning $REPOSITORY"
|
|
||||||
clean "$REPOSITORY"
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
error "Repository $REPOSITORY failed integrity check!"
|
error "Repository $REPOSITORY failed integrity check!"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user