Merge pull request #202 from makkes/master

Ignore return code of `grep` (#201)
This commit is contained in:
David Xia authored and GitHub committed 2019-06-06 16:43:46 -04:00
commit df5a264375
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