From 30ef95b6d45256f205794d0b4cb223cb1856ca90 Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Wed, 11 Sep 2024 11:34:00 +1000 Subject: [PATCH] Specify `-maxdepth` before `-name` See warning from https://buildkite.com/automattic/simplenote-android/builds/361#0191deaf-ee5a-4c77-8e48-2781416d93cd [2024-09-11T01:32:31Z] find: warning: you have specified the global option -maxdepth after the argument -name, 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. --- .buildkite/commands/release-build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/commands/release-build.sh b/.buildkite/commands/release-build.sh index 257ac7034..f6801563e 100644 --- a/.buildkite/commands/release-build.sh +++ b/.buildkite/commands/release-build.sh @@ -12,7 +12,7 @@ bundle exec fastlane build_for_distribution echo "--- :computer: Use deterministic APK name for next steps" OUTPUT_DIR="build" -if [ "$(find "$OUTPUT_DIR" -name "*.apk" -maxdepth 1 | wc -l)" -gt 1 ]; then +if [ "$(find "$OUTPUT_DIR" -maxdepth 1 -name "*.apk" | wc -l)" -gt 1 ]; then echo "Found more than one APK in $OUTPUT_DIR." exit 1 fi