From: Fabio Scotoni <34964387+fscoto@users.noreply.github.com> Date: Mon, 21 Oct 2019 17:46:21 +0000 (+0200) Subject: Change release.sh to use find -exec X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=168cee1e99089851a5f5a8600c132cab25f1792c;p=Monocypher.git Change release.sh to use find -exec This avoids some potential weirdness with whitespace in find and for. --- 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.