mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 23:22:57 +00:00
shellcheck git push set upstream
This commit is contained in:
parent
6b46b301c7
commit
15abc40983
@ -1,12 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
# Copied from David Pedersen: https://github.com/davidpdrsn/dotfiles/blob/master/bin/git-pp
|
# Copied from David Pedersen: https://github.com/davidpdrsn/dotfiles/blob/master/bin/git-pp
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
function git_branch_name {
|
git_branch_name() {
|
||||||
val=`git branch 2>/dev/null | grep '^*' | colrm 1 2`
|
val=$( git branch 2>/dev/null | grep '^\*' | colrm 1 2 )
|
||||||
echo "$val"
|
echo "$val"
|
||||||
}
|
}
|
||||||
|
|
||||||
git push --set-upstream origin $(git_branch_name)
|
git push --set-upstream origin "$(git_branch_name)"
|
||||||
|
Loading…
Reference in New Issue
Block a user