Revert "Revert "Ignore return code of grep (#201)""

This reverts commit e2bcad03b7.
This commit is contained in:
Max Jonas Werner committed 2019-04-16 10:40:39 +02:00
1 parent e2bcad03b7
commit a5cb5cc6e0
1 file changed
+2 -2
+2 -2
View File
@@ -344,9 +344,9 @@ if [[ $REMOVE_VOLUMES -gt 0 ]]; then
fi
else
if [[ -z "$VOLUME_DELETE_ONLY_DRIVER" ]]; then
$DOCKER volume ls --filter "dangling=true" -q | grep -v -f $EXCLUDE_VOLUMES_IDS_FILE > volumes.reap
$DOCKER volume ls --filter "dangling=true" -q | grep -v -f $EXCLUDE_VOLUMES_IDS_FILE > volumes.reap || true
else
$DOCKER volume ls --filter "dangling=true" --filter "driver=$VOLUME_DELETE_ONLY_DRIVER" -q | grep -v -f $EXCLUDE_VOLUMES_IDS_FILE > volumes.reap
$DOCKER volume ls --filter "dangling=true" --filter "driver=$VOLUME_DELETE_ONLY_DRIVER" -q | grep -v -f $EXCLUDE_VOLUMES_IDS_FILE > volumes.reap || true
fi
if [[ $DRY_RUN -gt 0 ]]; then