From 9fa97b59b1c0f2ec1bb48f320f4c16e61fdb08e0 Mon Sep 17 00:00:00 2001 From: John Barboza Date: Mon, 23 Jul 2018 16:17:22 +0000 Subject: [PATCH] fix fetch on aix The `find` utility does not support iname option. Use grep to work around this limitation. Change-Id: Iee16def0e4eea8b868c4f3aad164caa0bd7e9d5d Reviewed-on: https://chromium-review.googlesource.com/1106651 Commit-Queue: Dirk Pranke Reviewed-by: Dirk Pranke --- update_depot_tools | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_depot_tools b/update_depot_tools index bc163f80df..6e6f00de97 100755 --- a/update_depot_tools +++ b/update_depot_tools @@ -123,6 +123,6 @@ if [ "X$DEPOT_TOOLS_UPDATE" != "X0" ]; then source "$base_dir/cipd_bin_setup.sh" cipd_bin_setup - find "$base_dir" -iname "*.pyc" -exec rm -f {} \; + find "$base_dir" | grep -i ".*\.pyc" | xargs rm -f; fi