sagemath/testjava.sh
2013-04-22 14:11:03 -03:00

13 lines
237 B
Bash
Executable file

#!/bin/bash
type -atp java
OUT=$?
#echo $OUT
if [ $OUT -eq 0 ]; then
#found java now check 1.5<=version<=1.7
#version >1.7 may be OK just not checked yet.
java -version 2>&1|grep version.*[1]\.[567]
else
exit 1
fi
#OUT=$?
#echo $OUT