We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4859079 commit 5e2ff56Copy full SHA for 5e2ff56
bin/ruby-build
@@ -116,8 +116,13 @@ fetch_git() {
116
local git_ref="$3"
117
118
echo "Cloning ${git_url}..." >&2
119
- { git clone --depth 1 --branch "$git_ref" "$git_url" "${package_name}"
120
- } >&4 2>&1
+
+ if type git 2>/dev/null; then
121
+ git clone --depth 1 --branch "$git_ref" "$git_url" "${package_name}" >&4 2>&1
122
+ else
123
+ echo "error: please install \`git\` and try again" >&2
124
+ exit 1
125
+ fi
126
}
127
128
build_package() {
0 commit comments