Merge pull request #46 from aidanhs/aphs-no-excludes
Do not exclude everything when excluding nothing
This commit is contained in:
commit
a7c146dbad
1 file changed
+5
@@ -111,6 +111,11 @@ function compute_exclude_container_ids() {
|
||||
PROCESSED_EXCLUDES=`cat $EXCLUDE_CONTAINERS_FROM_GC \
|
||||
| xargs \
|
||||
| sed -e 's/ /\|/g'`
|
||||
# The empty string would match everything
|
||||
if [ "$PROCESSED_EXCLUDES" = "" ]; then
|
||||
touch $EXCLUDE_CONTAINER_IDS_FILE
|
||||
return
|
||||
fi
|
||||
# Find all docker images
|
||||
# Filter out with matching names
|
||||
# and put them to $EXCLUDE_CONTAINER_IDS_FILE
|
||||
|
||||
Reference in new issue
Block a user