File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,9 +19,13 @@ srcdir="$( cd "$( dirname "$0}" )" && pwd )"
1919
2020JYTHON_VERSION=2.7.0
2121
22- mkdir -p /opt
23- wget -cO jython-installer.jar " http://search.maven.org/remotecontent?filepath=org/python/jython-installer/$JYTHON_VERSION /jython-installer-$JYTHON_VERSION .jar"
24- " $srcdir /jython_autoinstall.exp"
25- ln -sf " /opt/jython-$JYTHON_VERSION " /opt/jython
26- rm -f jython-installer.jar
27- echo " Jython Install DONE - Add /opt/jython/bin to your \$ PATH"
22+ if ! [ -e /opt/jython ]; then
23+ mkdir -p /opt
24+ wget -cO jython-installer.jar " http://search.maven.org/remotecontent?filepath=org/python/jython-installer/$JYTHON_VERSION /jython-installer-$JYTHON_VERSION .jar"
25+ " $srcdir /jython_autoinstall.exp"
26+ ln -sf " /opt/jython-$JYTHON_VERSION " /opt/jython
27+ rm -f jython-installer.jar
28+ echo " Jython Install DONE - Add /opt/jython/bin to your \$ PATH"
29+ else
30+ echo " /opt/jython already exists - doing nothing"
31+ fi
You can’t perform that action at this time.
0 commit comments