mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
setup-hooks/strip: Exit if cmd
or ranlibCmd
are empty
This commit is contained in:
parent
2ae18b7e10
commit
f46c8c1bcd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user