From f46c8c1bcd9830d5e7b0d9264c8dd8f688518d9d Mon Sep 17 00:00:00 2001 From: Artturin Date: Fri, 21 Jul 2023 21:56:38 +0300 Subject: [PATCH] setup-hooks/strip: Exit if `cmd` or `ranlibCmd` are empty --- pkgs/build-support/setup-hooks/strip.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/build-support/setup-hooks/strip.sh b/pkgs/build-support/setup-hooks/strip.sh index ed374dbb960f..1d65c10c5230 100644 --- a/pkgs/build-support/setup-hooks/strip.sh +++ b/pkgs/build-support/setup-hooks/strip.sh @@ -51,6 +51,9 @@ stripDirs() { local stripFlags="$4" local pathsNew= + [ -z "$cmd" ] && echo "stripDirs: Strip command is empty" 1>&2 && exit 1 + [ -z "$ranlibCmd" ] && echo "stripDirs: Ranlib command is empty" 1>&2 && exit 1 + local p for p in ${paths}; do if [ -e "$prefix/$p" ]; then