Skip to content

Commit

Permalink
Specify -maxdepth before -name
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mokagio committed Sep 11, 2024
1 parent 18aba59 commit 30ef95b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .buildkite/commands/release-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 30ef95b

Please sign in to comment.