forked from platypush/platypush
(Possible?) fix for a weird bash syntax error.
This commit is contained in:
parent
739777271d
commit
92d7ce8305
1 changed files with 1 additions and 1 deletions
|
@ -455,7 +455,7 @@ steps:
|
||||||
- echo "-- Cleaning up older apt releases"
|
- echo "-- Cleaning up older apt releases"
|
||||||
- |
|
- |
|
||||||
find "$BUCKET_MNT/apt/dists" -mindepth 3 -maxdepth 3 -type d | tail -n+2 | while read reldir; do
|
find "$BUCKET_MNT/apt/dists" -mindepth 3 -maxdepth 3 -type d | tail -n+2 | while read reldir; do
|
||||||
let pkg_to_remove=($(ls "$reldir" | wc -l) - $MAX_PKG_PER_BRANCH)
|
let pkg_to_remove=$(ls "$reldir" | wc -l)-$MAX_PKG_PER_BRANCH
|
||||||
[ $pkg_to_remove -le 0 ] && break
|
[ $pkg_to_remove -le 0 ] && break
|
||||||
ls -rt "$reldir" | head -n$pkg_to_remove | xargs printf -- "$reldir/%s\n" | xargs rm -f
|
ls -rt "$reldir" | head -n$pkg_to_remove | xargs printf -- "$reldir/%s\n" | xargs rm -f
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue