Created
July 13, 2016 14:30
-
-
Save tobiashm/712cf4316a852415ab8c8a577dc8033f to your computer and use it in GitHub Desktop.
Create a tag name from current directory
This file contains hidden or 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
#!/bin/bash | |
tag_name="$(echo -e "${PWD##*/}" | tr -cd '[:alnum:]')" | |
echo $tag_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment