Skip to content

Commit e01a0fb

Browse files
authored
mkrelease: fix shellcheck SC2046 warning (#412)
1 parent 7adef52 commit e01a0fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/mkrelease

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ sed -ie "s/\"[\.0-9]*\"/\"$version\"/" version.h
4949
./scripts/cd2nroff trurl.md > "$rel"/trurl.1
5050

5151
# create a release directory tree
52-
# shellcheck disable=SC2046
53-
cp -p --parents $(git ls-files | grep -vE '(\.git|^REUSE\.toml|^LICENSES/)') "$rel"
52+
git ls-files ':!:.git*' ':!:*/.git*' ':!:REUSE.toml' ':!:LICENSES/*' -z | xargs -0 -r -I{} cp -p --parents {} "$rel"
5453

5554
# create tarball from the tree
5655
targz="$rel.tar.gz"

0 commit comments

Comments
 (0)