Use %% instead of % parameter expansion where appropriate
authorZac Medico <zmedico@gentoo.org>
Fri, 23 Nov 2007 01:57:41 +0000 (01:57 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 23 Nov 2007 01:57:41 +0000 (01:57 -0000)
for md5sum output. (trunk r8613)

svn path=/main/branches/2.1.2/; revision=8614

bin/misc-functions.sh

index c1aded7c287323991c6883473381ab0e579e068a..b0e1a42edc56d8265b9b0c69438339dd43538773 100755 (executable)
@@ -522,7 +522,7 @@ dyn_package() {
        mv -f "${pkg_tmp}" "${pkg_dest}" || die "Failed to move tbz2 to ${pkg_dest}"
        ln -sf "../All/${PF}.tbz2" "${PKGDIR}/${CATEGORY}/${PF}.tbz2" || die "Failed to create symlink in ${PKGDIR}/${CATEGORY}"
        local md5sum_output=$(md5sum "${pkg_dest}")
-       echo ${md5sum_output% *} > "${PORTAGE_BUILDDIR}"/build-info/BINPKGMD5
+       echo ${md5sum_output%% *} > "${PORTAGE_BUILDDIR}"/build-info/BINPKGMD5
        vecho ">>> Done."
        cd "${PORTAGE_BUILDDIR}"
        touch .packaged || die "Failed to 'touch .packaged' in ${PORTAGE_BUILDDIR}"