diff --git a/support/download/git b/support/download/git index c48ad36b1a..bf05c595a5 100755 --- a/support/download/git +++ b/support/download/git @@ -121,8 +121,8 @@ LC_ALL=C sort <"${output}.list" >"${output}.list.sorted" # Create GNU-format tarballs, since that's the format of the tarballs on # sources.buildroot.org and used in the *.hash files -tar cf - --transform="s/^\.\//${basename}\//" \ - --numeric-owner --owner=0 --group=0 --mtime="${date}" --format=gnu \ +tar cf - --transform="s#^\./#${basename}/#" \ + --numeric-owner --owner=0 --group=0 --mtime="${date}" --format=gnu \ -T "${output}.list.sorted" >"${output}.tar" gzip -6 -n <"${output}.tar" >"${output}"