diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-10-09 14:43:11 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-10-09 22:27:58 -0400 |
commit | 8ebca724748c0c2046e3120b0f5a813fc4298671 (patch) | |
tree | be7c5d8d114f33d8f57636f67b8273923e415e36 | |
parent | 93b7bbebd96c1cca24a53659657033d621e5c1f4 (diff) | |
download | portage-8ebca724748c0c2046e3120b0f5a813fc4298671.tar.gz portage-8ebca724748c0c2046e3120b0f5a813fc4298671.tar.bz2 portage-8ebca724748c0c2046e3120b0f5a813fc4298671.zip |
prepstrip: optimize chmod slightly
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-x | bin/ebuild-helpers/prepstrip | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ebuild-helpers/prepstrip b/bin/ebuild-helpers/prepstrip index d25259dca..5f0fe18fe 100755 --- a/bin/ebuild-helpers/prepstrip +++ b/bin/ebuild-helpers/prepstrip @@ -73,9 +73,9 @@ save_elf_debug() { eval $inode=\$x ${OBJCOPY} --only-keep-debug "${x}" "${y}" ${OBJCOPY} --add-gnu-debuglink="${y}" "${x}" - [[ -g ${x} ]] && chmod go-r "${y}" - [[ -u ${x} ]] && chmod go-r "${y}" - chmod a-x,o-w "${y}" + local args="a-x,o-w" + [[ -g ${x} || -u ${x} ]] && args+=",go-r" + chmod ${args} "${y}" fi if [[ -n ${buildid} ]] ; then |