From e4aa02741ed712bfbdbd6843ca615380cea37d1f Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Wed, 25 May 2022 13:07:29 -0400 Subject: [PATCH] Use relative lib paths Play nice when we are included as a submodule --- bin/shunit.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/shunit.sh b/bin/shunit.sh index 32618f7..b22aff1 100644 --- a/bin/shunit.sh +++ b/bin/shunit.sh @@ -1,6 +1,7 @@ #!/bin/bash -source /usr/lib/cmdarg.sh +libdir=$(readlink -f $(dirname ${BASH_SOURCE[0]}))/../lib +source ${libdir}/cmdarg.sh function validate_format { @@ -19,7 +20,7 @@ cmdarg_parse "$@" FORMATTER=${cmdarg_cfg['format']} set -e -source /usr/lib/${FORMATTER}.sh +source ${libdir}/${FORMATTER}.sh set +e ${FORMATTER}_header