setup-hooks/strip: Exit if cmd or ranlibCmd are empty

This commit is contained in:
Artturin 2023-07-21 21:56:38 +03:00
parent 2ae18b7e10
commit f46c8c1bcd

View file

@ -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