aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-08-03 15:16:03 +0200
committerSven Gothel <[email protected]>2021-08-03 15:16:03 +0200
commit46854faaf61d9061623502633a96f63c8dfc3ca4 (patch)
tree82c2fbae6f6584117fee30c64961cc63006de6b4
parent385e231051055fddacbb504daf58528cd966f981 (diff)
Fix scripts/dependencies_check: Use depend-file from argument, simplify sed invocation
-rw-r--r--scripts/dependencies_check3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/dependencies_check b/scripts/dependencies_check
index 375512b..b14c093 100644
--- a/scripts/dependencies_check
+++ b/scripts/dependencies_check
@@ -10,8 +10,7 @@ dependencies_check()
for depfile in "$@"; do
if [[ -e "$depfile" ]]; then
- deps="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${BASE_DIR}/depends")"
-
+ deps=$(sed -f "${SCRIPT_DIR}/remove-comments.sed" "$depfile")
fi
for dep in $deps; do
if ! hash "${dep%:*}" 2>/dev/null; then