#!/bin/bash -e export RED_COLOR='\e[1;31m' export GREEN_COLOR='\e[1;32m' export YELLOW_COLOR='\e[1;33m' export BLUE_COLOR='\e[1;34m' export PINK_COLOR='\e[1;35m' export SHAN='\e[1;33;5m' export RES='\e[0m' GROUP= group() { endgroup echo "::group:: $1" GROUP=1 } endgroup() { if [ -n "$GROUP" ]; then echo "::endgroup::" fi GROUP= } # check if [ "$(whoami)" != "zhiern" ] && [ -z "$git_name" ] && [ -z "$git_password" ]; then echo -e "\n${RED_COLOR} Not authorized. Execute the following command to provide authorization information:${RES}\n" echo -e "${BLUE_COLOR} export git_name=your_username git_password=your_password${RES}\n" exit 1 fi