Simplify command by using awk

This commit is contained in:
Knut Ahlers 2016-11-12 19:18:49 +01:00
parent 87f35513c3
commit 24f726b08f
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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