Commit 9e2041137674ff20a28f3c918e8a09a1f005dbaf

Thomas de Grivel 2023-02-18T02:48:18

wip ci

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/share/shpkg/shpkg.subr b/share/shpkg/shpkg.subr
index d08c4cc..b35f1ad 100644
--- a/share/shpkg/shpkg.subr
+++ b/share/shpkg/shpkg.subr
@@ -838,10 +838,12 @@ cut_prefix () {
 }
         
 shpkg_ci_changed_file () {
-    if ! cut_prefix "${SHPKG_CI_DIR}" "$1"; then
+    SUFFIX="$(cut_prefix "${SHPKG_CI_DIR}" "$1")"
+    if [ "x$SUFFIX" = "x" ]; then
         err 1 "shpkg_ci_changed_file: file not in ci dir: $1"
     fi
-    cut_prefix "${SHPKG_CI_DIR}" "$1" >> "${SHPKG_CI_CHANGED_FILES}"
+    echo "$SUFFIX" >> "${SHPKG_CI_CHANGED_FILES}"
+    echo "shpkg_ci_changed_file $SUFFIX"
 }
 
 log_status () {