From feb0fb22c63e091501f296f52ef03c045a1d0993 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Thu, 21 Jul 2022 07:45:51 -0700 Subject: [PATCH] :recycle: Refactored improper if statements --- scripts/bgit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/bgit b/scripts/bgit index 80af7bbb..42626c86 100755 --- a/scripts/bgit +++ b/scripts/bgit @@ -148,7 +148,7 @@ if [ $numrepos -eq 0 ] ; then tput bold & tput setaf 7 # bgit uses github api if github.com is defined as host site - if [[ -n $host && $host="github.com" ]] ; then + if [[ -n $host && $host == "github.com" ]] ; then read -e -r -p "${txtwhite}Host site is github.com, would you like bgit to create the repository?(y/n): ${txtyellow}" crepo # Reset output style @@ -177,7 +177,7 @@ if [ $numrepos -eq 0 ] ; then git push --set-upstream $remote $branch # git push -u $remote $branch - if [[ $host="github.com" ]] ; then + if [[ $host == "github.com" ]] ; then echo "${txtgreen}Git repository created and initiated!!${txtwhite}" # clears $GH_TOKEN from clipboard echo '' | xclip && xclip -selection clipboard /dev/null