···33# Check if the branch exists
44function is_a_git_branch {
55 git rev-parse --verify "$1" >/dev/null 2>&1
66- return $?
77-}66+}
+1-2
utils/check_connection.sh
···33# function for connection check
44function connected {
55 $SUDO ping -c 1 github.com &>/dev/null
66- return $?
76}
8798# Check for internet connectivity to GitHub
···1211 echo "${BOLD} This won't work, you are offline !${RESET}"
1312 exit 0
1413 fi
1515-}1414+}