Skip to content

Commit

Permalink
archive.sh: Add ${name} var
Browse files Browse the repository at this point in the history
Signed-off-by: Rong Tao <[email protected]>
  • Loading branch information
Rtoax committed Jul 1, 2024
1 parent 083ef76 commit 74df117
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion archive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ if [[ ! -d .git/ ]]; then
fi

version=$(git describe --abbrev=0 --tags 2>/dev/null)
git archive --format tar.gz --prefix=ulpatch-${version}/ --output ulpatch-${version}.tar.gz master
name=ulpatch-${version}
git archive --format tar.gz --prefix=${name}/ --output ${name}.tar.gz master

0 comments on commit 74df117

Please sign in to comment.