strip: Silence any warnings for files without capabilities

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2021-07-13 15:34:59 +00:00
parent c64dc3bef5
commit 131cfcf223

View File

@@ -29,7 +29,7 @@ function _strip() {
# Fetch any capabilities
local capabilities="$(getfattr --no-dereference --name="security.capability" \
--absolute-names --dump "${file}")"
--absolute-names --dump "${file}" 2>/dev/null)"
local cmd=( "${strip}" )