Merge pull request #165 from nzwalker/master

Fix use of non-busybox opts to sort, tail and cut
This commit is contained in:
Matt Brown authored and GitHub committed 2017-05-09 11:25:48 -04:00
commit 2e8cb16527
1 file changed
+3 -3
+3 -3
View File
@@ -249,9 +249,9 @@ do
done | sort | uniq | while read line
do
$DOCKER images --no-trunc --format "{{.ID}} {{.CreatedAt}}" $line \
| sort --key 2 --reverse \
| tail --lines +$((MINIMUM_IMAGES_TO_SAVE+1)) \
| cut --fields 1 --delimiter " " \
| sort -k 2 -r \
| tail -n +$((MINIMUM_IMAGES_TO_SAVE+1)) \
| cut -f 1 -d " " \
| uniq >> images.all
done