From 2dca99ed522c48cd4ae06113d3d28824c41e2bd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erdem=20=C3=96zgen?= Date: Fri, 29 Mar 2024 00:41:29 +0300 Subject: [PATCH] Add git check fixes #32 --- scripts/blackdagger-installer.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/blackdagger-installer.sh b/scripts/blackdagger-installer.sh index f839507..bfc23d6 100644 --- a/scripts/blackdagger-installer.sh +++ b/scripts/blackdagger-installer.sh @@ -6,6 +6,12 @@ if [ "$(id -u)" -ne 0 ]; then exit 1 fi +if ! command -v git &>/dev/null; then + echo "Git is not installed." + echo "Please install git if you want to pull default yamls !!!" +else + echo "Git is already installed. It will pull default yamls" +fi RELEASES_URL="https://github.com/yudai/gotty/releases" GOTTY_TARGET_VERSION="v1.0.1"