Simplify command by using awk
This commit is contained in:
parent
87f35513c3
commit
24f726b08f
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash -ex
|
||||
|
||||
CURRENT_BRANCH=$(git branch --list | grep '^\*' | cut -d ' ' -f 2)
|
||||
CURRENT_BRANCH=$(git branch --list | awk '/^\*/{print $2}')
|
||||
|
||||
exec git push origin ${CURRENT_BRANCH} --tags
|
||||
|
|
Loading…
Reference in a new issue