Ignore return code of grep (#201)

This commit is contained in:
Max Jonas Werner committed 2019-03-26 10:56:44 +00:00
1 parent 131a786886
commit c9eeff47b9
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