mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-01 20:32:54 +08:00
fix installing/hardcoding
This commit is contained in:
parent
d65d89183f
commit
acbafdf190
@ -1,5 +1,19 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
wget http://central.maven.org/maven2/org/python/jython-installer/2.7.1/jython-installer-2.7.1.jar
|
version="jython-installer-2.7.2.jar"
|
||||||
java -jar jython-installer-2.7.1.jar -s -d "$HOME/jython"
|
url="https://repo1.maven.org/maven2/org/python/jython-installer/2.7.2/jython-installer-2.7.2.jar"
|
||||||
|
pkg="java"
|
||||||
|
pkg_ok=$(dpkg-query -W --showformat='${Status}\n' $pkg | grep "install ok installed")
|
||||||
|
|
||||||
|
echo "Downloading source"
|
||||||
|
#wget $url
|
||||||
|
echo "Installing jython"
|
||||||
|
if [ "" = "$pkg_ok" ]; then
|
||||||
|
echo "$pkg is not installed. Setting this up now."
|
||||||
|
apt-get update
|
||||||
|
apt-get install openjdk-8-jdk
|
||||||
|
java - version
|
||||||
|
fi
|
||||||
|
java -jar $version -s -d "$HOME/jython"
|
||||||
|
echo "Installing nose"
|
||||||
$HOME/jython/bin/jython -m pip install nose
|
$HOME/jython/bin/jython -m pip install nose
|
Loading…
Reference in New Issue
Block a user