mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Update install_java.sh
This commit is contained in:
parent
c782f22fe8
commit
c5d1faf264
@ -10,7 +10,7 @@
|
||||
# echo 'export JAVA_HOME=/Library/Java/JavaVirtualMachines/<ENTER_NEW_JDK>/Contents/Home' >>~/.bash_profile
|
||||
# echo 'export PATH=$JAVA_HOME/bin:$PATH' >>~/.bash_profile
|
||||
# source ~/.bash_profile
|
||||
|
||||
set -e
|
||||
|
||||
unameOut="$(uname -s)"
|
||||
case "${unameOut}" in
|
||||
@ -27,7 +27,7 @@ case "${unameOut}" in
|
||||
osInfo[/etc/SuSE-release]=zypp
|
||||
osInfo[/etc/debian_version]=apt-get
|
||||
|
||||
for f in ${!osInfo[@]}
|
||||
for f in "${!osInfo[@]}"
|
||||
do
|
||||
if [[ -f $f ]]; then
|
||||
PACKAGE_MANAGER=${osInfo[$f]}
|
||||
@ -74,9 +74,10 @@ case "${unameOut}" in
|
||||
fi
|
||||
|
||||
echo export JAVA_HOME=$JAVA_HOME >>~/.bash_profile
|
||||
echo export PATH=$JAVA_HOME/bin:$PATH >>~/.bash_profile
|
||||
source ~/.bash_profile
|
||||
echo export PATH=$JAVA_HOME/bin:"$PATH" >>~/.bash_profile
|
||||
source "$HOME/.bash_profile"
|
||||
;;
|
||||
*) machine="UNKNOWN:${unameOut}"
|
||||
*)
|
||||
esac
|
||||
java -version
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user