fix (git): lint formatting in plugins

pull/2112/head
Gurkirat Singh 2022-03-07 11:36:49 +05:30
parent 6f1dcd1433
commit f543e768cd
No known key found for this signature in database
GPG Key ID: 5D829219EF259AA5
1 changed files with 36 additions and 34 deletions

View File

@ -320,7 +320,9 @@ function git-get-default-branch() {
group 'git'
example '$ git-get-default-branch'
echo $(basename $(git symbolic-ref refs/remotes/origin/HEAD))
local BRANCH
BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD)
basename "$BRANCH"
}
function git-delete-stale-branch() {
@ -329,7 +331,7 @@ function git-delete-stale-branch() {
example '$ git-delete-stale-branch [--force|-f]'
local CURR_BRANCH
CURR_BRANCH=$(git branch | grep "*" | awk '{print $2}')
CURR_BRANCH=$(git branch | grep "\*" | awk '{print $2}')
if [[ "$1" == "--force" ]] || [[ "$1" == "-f" ]]; then
git branch | grep -vE "$(git-get-default-branch)|$CURR_BRANCH" | xargs git branch -D