s/whoami/id -un/

This commit is contained in:
Michael Vines
2018-09-05 11:07:59 -07:00
parent ec38dba209
commit 6560b0e2cc
3 changed files with 4 additions and 4 deletions

View File

@ -40,10 +40,10 @@ echo --- Remove unused docker networks
docker network prune -f
)
echo "--- Delete /tmp files older than 1 day owned by $(whoami)"
echo "--- Delete /tmp files older than 1 day owned by $(id -un)"
(
set -x
find /tmp -maxdepth 1 -user "$(whoami)" -mtime +1 -print0 | xargs -0 rm -rf
find /tmp -maxdepth 1 -user "$(id -un)" -mtime +1 -print0 | xargs -0 rm -rf
)
echo --- Deleting stale buildkite agent build directories