From d392aba120c78f76e8b1352e39adbcbb0d6f7244 Mon Sep 17 00:00:00 2001 From: Abraham Raji Date: Fri, 9 Jun 2023 03:27:16 +0530 Subject: [PATCH] Add better error message for missing git --- install.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.zsh b/install.zsh index d87461f..527f864 100755 --- a/install.zsh +++ b/install.zsh @@ -43,7 +43,7 @@ main() { } # Clone the Zap Repository branch - git clone -b "$BRANCH[-1]" https://github.com/zap-zsh/zap.git "$ZAP_DIR" &> /dev/null || { echo "❌ Failed to install Zap" && return 2 } + git clone -b "$BRANCH[-1]" https://github.com/zap-zsh/zap.git "$ZAP_DIR" &> /dev/null || { echo "❌ Git is a dependency for zap. Please install git and try again." && return 2 } # Only modify .zshrc file if --keep flag not set if [[ -z "$KEEP" ]]; then