Skip to content

Commit

Permalink
Merge pull request #167 from abrahamparayil/patch-1
Browse files Browse the repository at this point in the history
Add better error message when git is not installed
  • Loading branch information
wintermi authored Jun 9, 2023
2 parents dd293ad + d392aba commit 89b7841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89b7841

Please sign in to comment.