From 168cee1e99089851a5f5a8600c132cab25f1792c Mon Sep 17 00:00:00 2001 From: Fabio Scotoni <34964387+fscoto@users.noreply.github.com> Date: Mon, 21 Oct 2019 19:46:21 +0200 Subject: [PATCH] Change release.sh to use find -exec This avoids some potential weirdness with whitespace in find and for. --- release.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/release.sh b/release.sh index cbe485f..0b161ff 100755 --- a/release.sh +++ b/release.sh @@ -23,10 +23,7 @@ rm -rf $FOLDER rsync -ad --exclude-from=tarball_ignore ./ $FOLDER # Replace version markers by the actual version number (from tags) -for file in `find monocypher-$VERSION -type f` -do - sed -i "s/__git__/$VERSION/g" $file -done +find $FOLDER -type f -exec sed -i "s/__git__/$VERSION/g" \{\} \; # Remove the dist target from the makefile (no recursive releases!), # and the tests/vector.h target, which ships with the tarball. -- 2.47.3