diff options
author | Heiko Bernloehr <Heiko.Bernloehr@FreeIT.de> | 2012-02-23 14:47:30 +0100 |
---|---|---|
committer | Heiko Bernloehr <Heiko.Bernloehr@FreeIT.de> | 2012-02-23 14:47:30 +0100 |
commit | 1376309be41bc28e573961f746f0310e541dad23 (patch) | |
tree | 3079472f6e3ffa7d6e60c5af6d94b34f1066ee60 /campusconnect | |
parent | bdef3f9ff40622c766f89e54c7fd44b499d282be (diff) | |
download | ecs2-1376309be41bc28e573961f746f0310e541dad23.tar.gz ecs2-1376309be41bc28e573961f746f0310e541dad23.zip |
Testing prerequisites.
Diffstat (limited to 'campusconnect')
-rwxr-xr-x | campusconnect/scripts/lsfproxy.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/campusconnect/scripts/lsfproxy.sh b/campusconnect/scripts/lsfproxy.sh index eefa228..0ad0b63 100755 --- a/campusconnect/scripts/lsfproxy.sh +++ b/campusconnect/scripts/lsfproxy.sh @@ -61,6 +61,28 @@ usage() { echo " -h|? ... usage" echo "" } + +### +### Prerequisites +### +prerequisites() { +curl --version >/dev/null 2>&1 +if [ "$?" != "0" ]; then + cat <<-'EOF' + + ------------------------------------- + ERROR: + Can't find "curl". Please install it. + In a Debian system just run as root: + + apt-get install curl + ------------------------------------- + + EOF + exit 1 +fi +} + ### ### resource select helper ### @@ -187,6 +209,9 @@ echo "" ### ### main ### + +prerequisites + if [ $# -eq "$NO_ARGS" ] # Script invoked with no command-line args? then usage |