Commit 88ce7542a75eefc65f4f53addb0ebf51922a8b6b

Authored by Marco Antonio Konopacki
1 parent db9ec41f

inclusão do script para deletar uma tag

Showing 1 changed file with 53 additions and 0 deletions   Show diff stats
scripts/delete_tag.sh 0 → 100755
@@ -0,0 +1,53 @@ @@ -0,0 +1,53 @@
  1 +#!/bin/bash
  2 +
  3 +if [ $# -eq 0 ]; then
  4 + echo "No arguments supplied, exiting script"
  5 + echo "Please provide tag name as input parameter"
  6 + exit 0
  7 +fi
  8 +
  9 +
  10 +function delete_tag {
  11 +
  12 + git fetch --all
  13 +
  14 + git tag -d $1
  15 +
  16 + git push composer :refs/tags/$1
  17 +
  18 + git push --tags
  19 +
  20 +}
  21 +
  22 +cd ..
  23 +
  24 +delete_tag $1
  25 +
  26 +cd src/wp-content/themes/participacao-tema
  27 +
  28 +delete_tag $1
  29 +
  30 +cd ../pensandoodireito-tema
  31 +
  32 +delete_tag $1
  33 +
  34 +cd ../marcocivil-tema
  35 +
  36 +delete_tag $1
  37 +
  38 +cd ../dadospessoais-tema
  39 +
  40 +delete_tag $1
  41 +
  42 +cd ../../plugins/pensandoodireito-network-functions
  43 +
  44 +delete_tag $1
  45 +
  46 +cd ../wp-side-comments
  47 +
  48 +delete_tag $1
  49 +
  50 +cd ../delibera
  51 +
  52 +delete_tag $1
  53 +