diff --git a/MasterPassword/C/distribute b/MasterPassword/C/distribute index 279b5b27..34c058b8 100755 --- a/MasterPassword/C/distribute +++ b/MasterPassword/C/distribute @@ -4,14 +4,14 @@ set -e cd "${BASH_SOURCE%/*}" tag=$(git describe) commit=$(git describe --long --dirty) -[[ $tag && $commit = $tag-* ]] || exit 1 +[[ $tag && $commit = $tag* ]] || exit 1 git show --show-signature --pretty=format:%H --quiet "$tag" > VERSION mpwArchive=mpw-$commit.tar.gz [[ -e $mpwArchive ]] && echo "WARNING: $mpwArchive already exists. Will overwrite." read -n1 -p "Will prepare and release $mpwArchive. Press a key to continue or ^C to abort." -git ls-files -z . | xargs -0 tar -cvzf "$mpwArchive" +git ls-files -z . | xargs -0 tar -Lcvzf "$mpwArchive" echo "$mpwArchive ready, SHA256: $(openssl sha -sha256 < "$mpwArchive")" cd ../../Site/current