aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall6
1 files changed, 6 insertions, 0 deletions
diff --git a/install b/install
index 0bacd594..7f14a532 100755
--- a/install
+++ b/install
@@ -21,6 +21,12 @@ lns() {
return
}
+# Bail if we don't have git(1)
+if ! hash git 2>/dev/null; then
+ printf '%s: Could not find git(1)!\n' "${0##*/}" >&2
+ exit 1
+fi
+
# Define dotfiles directory and check it exists
dotfiles=$HOME/.dotfiles
if [[ ! -d $dotfiles ]]; then