Created
May 2, 2018 16:23
-
-
Save asagajda/da0df7e6770cc74a7a72c25d45bbea25 to your computer and use it in GitHub Desktop.
Get tar.gz with renaming dir to include git current hash in dirname
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tar cvzf dist-dd-mm-yyyy.tar.gz dist --transform s/dist/dist-$(git rev-parse HEAD | cut -c 1-7)/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment