From 6491c061b7ea2e6cf1ab6e15ffb7365b0bebd410 Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Sun, 28 Apr 2024 12:57:02 -0700 Subject: [PATCH] change bin/find-missing-links.sh to print topdir relative paths The `bin/find-missing-links.sh` tool now will print missing files relative to "topdir", the root of the git repo. Changed `bin/find-missing-links.sh` VERSION from "1.0 2024-04-28" to "1.1 2024-04-28". --- bin/find-missing-links.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/find-missing-links.sh b/bin/find-missing-links.sh index 77abebc70..7e03e1e66 100755 --- a/bin/find-missing-links.sh +++ b/bin/find-missing-links.sh @@ -103,7 +103,7 @@ shopt -s globstar # enable ** to match all files and zero or more directories an # set variables referenced in the usage message # -export VERSION="1.0 2024-04-28" +export VERSION="1.1 2024-04-28" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -517,7 +517,7 @@ export MISSING_LINK_COUNT # report on any missing links # if [[ -s $TMP_MISSING_LINK ]]; then - cat "$TMP_MISSING_LINK" 1>&2 + sed -e "s;^$TOPDIR/;;" "$TMP_MISSING_LINK" 1>&2 fi # All Done!!! -- Jessica Noll, Age 2