Skip to content

Commit

Permalink
add scripts/tag.sh script file
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed Feb 4, 2022
1 parent aa238d3 commit 561e47a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions scripts/tag.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash

tag="${1}"

while (($#)); do
case "$2" in

-a)
git tag -a "${tag}" -m ""
exit 0
;;

-p)
git push origin "${tag}"
exit 0
;;

-x)
git tag -a "${tag}" -m ""
git push origin "${tag}"
exit 0
;;

-d)
git tag -d "${tag}"
git push --delete origin "${tag}"
exit 0
;;

esac
done

0 comments on commit 561e47a

Please # to comment.