mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-18 02:48:40 +00:00
tool/gocross: fix argument order to find
To avoid warning: find: warning: you have specified the global option -maxdepth after the argument -type, but global options are not positional, i.e., -maxdepth affects tests specified before it as well as those specified after it. Please specify global options before other arguments. Fixes tailscale/corp#23689 Change-Id: I91ee260b295c552c0a029883d5e406733e081478 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
e48cddfbb3
commit
cb10eddc26
@ -67,7 +67,7 @@ case "$REV" in
|
||||
rm -f "$toolchain.tar.gz"
|
||||
|
||||
# Do some cleanup of old toolchains while we're here.
|
||||
for hash in $(find "$HOME/.cache/tsgo" -type f -maxdepth 1 -name '*.extracted' -mtime 90 -exec basename {} \; | sed 's/.extracted$//'); do
|
||||
for hash in $(find "$HOME/.cache/tsgo" -maxdepth 1 -type f -name '*.extracted' -mtime 90 -exec basename {} \; | sed 's/.extracted$//'); do
|
||||
echo "# Cleaning up old Go toolchain $hash" >&2
|
||||
rm -rf "$HOME/.cache/tsgo/$hash"
|
||||
rm -rf "$HOME/.cache/tsgo/$hash.extracted"
|
||||
|
Loading…
x
Reference in New Issue
Block a user