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 () {