Skip to content

Commit

Permalink
setup-hooks/strip: Exit if cmd or ranlibCmd are empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Artturin committed Jul 21, 2023
1 parent 2ae18b7 commit f46c8c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/build-support/setup-hooks/strip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f46c8c1

Please sign in to comment.