~ubuntu-branches/ubuntu/vivid/pkgbinarymangler/vivid

« back to all changes in this revision

Viewing changes to pkgstripfiles

  • Committer: Martin Pitt
  • Date: 2014-03-18 07:40:27 UTC
  • Revision ID: martin.pitt@canonical.com-20140318074027-bwn9o73n2b5sdi91
pkgstripfiles: Fix escaping of % characters to also work with bash 4.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
        if [ -f DEBIAN/md5sums ]; then
101
101
            f=${f#./}
102
102
            MD5=`md5sum "$f"`
103
 
            sed -i "s%^.*  ${f//%/\%}\$%${MD5//%/\%}%" DEBIAN/md5sums
 
103
            sed -i "s%^.*  ${f//%/\\%}\$%${MD5//%/\\%}%" DEBIAN/md5sums
104
104
        fi
105
105
    done
106
106