Browse Source

Fastfile: fix screenshots check

We now have the app icon in the fastlane folder, so this check fails.

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
Álvaro Brey 2 năm trước cách đây
mục cha
commit
a572e3e512
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      fastlane/Fastfile

+ 1 - 1
fastlane/Fastfile

@@ -259,7 +259,7 @@ end
 
 desc "check if screenshots exists and exit"
 private_lane :checkIfScreenshotsExist do
-    sh(" if [ -e  metadata/android/*/images ] ; then echo 'Screenshots in fastlane folder exist; aborting!' ; exit 1 ; fi")
+    sh(" if [ $(find metadata/android/*/images -type f -not -name icon.png  | grep -c . ) -gt 0 ] ; then echo 'Screenshots in fastlane folder exist; aborting!' ; exit 1 ; fi")
 end
 
 private_lane :tag do |options|