From: Mike Frysinger Date: Tue, 11 Oct 2011 02:28:55 +0000 (-0400) Subject: prepstrip: avoid a `dirname` with a simple ${var%/*} X-Git-Tag: v2.2.0_alpha67~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=12dc5c56c821336f02338e3374b97e55273aee3c;p=portage.git prepstrip: avoid a `dirname` with a simple ${var%/*} Signed-off-by: Mike Frysinger --- diff --git a/bin/ebuild-helpers/prepstrip b/bin/ebuild-helpers/prepstrip index 68b2133e3..67ceeadb0 100755 --- a/bin/ebuild-helpers/prepstrip +++ b/bin/ebuild-helpers/prepstrip @@ -81,7 +81,7 @@ save_elf_debug() { # this will recompute the build-id, but for now that's ok local buildid="$( ${debugedit_found} && debugedit -i "${x}" )" - mkdir -p $(dirname "${y}") + mkdir -p "${y%/*}" local inode=$(inode_var_name "$x") if [[ -n ${!inode} ]] ; then