[retro-gtk/header-fixes] ci: Don't use find



commit f29a9aeb5676b5c807d1bf6b3bf35238fc88d922
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sat Jan 11 17:09:50 2020 +0100

    ci: Don't use find

 .gitlab-ci.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 72c5a04..fd5a4ad 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,11 +14,11 @@ api-visibility:
         exit 1;
       fi
     # Check that retro-gtk.h contains all the public headers.
-    - for header in $(find retro-gtk -name "*.h" -printf "%f\n" | grep -v private | grep -v retro-gtk.h);
+    - for header in $(ls retro-gtk/*.h | grep -v private | grep -v retro-gtk.h);
       do
-        if ! grep -q "$header" retro-gtk/retro-gtk.h;
+        if ! grep -q "$(basename $header)" retro-gtk/retro-gtk.h;
         then
-          echo "The public header" $header "should be included in retro-gtk.h.";
+          echo "The public header" $(basename $header) "should be included in retro-gtk.h.";
           exit 1;
         fi;
       done


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]