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

svn path=/main/trunk/; revision=8613

bin/misc-functions.sh

index 1a62932818f2375e4d24772b70b774fe0a7cba30..e13e1ea7643728bd39877864110a33d9706d9886 100755 (executable)
@@ -528,7 +528,7 @@ dyn_package() {
                die "Failed to append metadata to the tbz2 file"
        fi
        local md5sum_output=$(md5sum "${PORTAGE_BINPKG_TMPFILE}")
-       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}"