Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

script/bootstrap: sanity checks #4

Closed
wants to merge 1 commit into from

2 participants

@kanaka

Stop on errors.

Check for the curl and jar commands before doing anything.

Joel Martin script/bootstrap: sanity checks.
Stop on errors.

Check for the curl and jar commands before doing anything.
d3d71df
@swannodette
Collaborator

I see that you've sent in your CA mind moving this patch over to JIRA? Thanks much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 21, 2011
  1. script/bootstrap: sanity checks.

    Joel Martin authored
    Stop on errors.
    
    Check for the curl and jar commands before doing anything.
This page is out of date. Refresh to see the latest.
Showing with 14 additions and 0 deletions.
  1. +14 −0 script/bootstrap
View
14 script/bootstrap
@@ -1,5 +1,19 @@
#!/bin/sh
+set -e
+
+if ! which curl 2>/dev/null 1>&2; then
+ echo "Could not find the curl command"
+ echo "Please install the curl package"
+ exit 1
+fi
+
+if ! which jar 2>/dev/null 1>&2; then
+ echo "Could not find the jar command"
+ echo "Please install the Sun Java package"
+ exit 1
+fi
+
mkdir -p lib
echo "Fetching Clojure..."
Something went wrong with that request. Please try again.