Skip to content

Commit 8189823

Browse files
committed
updated jython_install.sh
1 parent 6d9ec46 commit 8189823

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

jython_install.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ srcdir="$( cd "$( dirname "$0}" )" && pwd )"
1919

2020
JYTHON_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

0 commit comments

Comments
 (0)