mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-23 22:56:52 +01:00
If DISABLE_JLINK
set, don't try to chmod jre/bin/java
(#4651)
* If DISABLE_JLINK set, don't try to chmod jre/bin/java * Do it for oracle server as well
This commit is contained in:
parent
9afab28d50
commit
2001e86ab9
2 changed files with 33 additions and 29 deletions
|
@ -1,21 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
if test -f "jre/bin/java"; then
|
||||
if [[ "$OS" == "OSX" ]]; then
|
||||
#mac doesn't allow random binaries to be executable
|
||||
#remove the quarantine attribute so java is executable on mac
|
||||
xattr -d com.apple.quarantine jre/bin/java
|
||||
if [[ -z "$DISABLE_JLINK" ]]; then
|
||||
if test -f "jre/bin/java"; then
|
||||
if [[ "$OS" == "OSX" ]]; then
|
||||
#mac doesn't allow random binaries to be executable
|
||||
#remove the quarantine attribute so java is executable on mac
|
||||
xattr -d com.apple.quarantine jre/bin/java
|
||||
fi
|
||||
chmod +x jre/bin/java #make sure java is executable
|
||||
fi
|
||||
chmod +x jre/bin/java #make sure java is executable
|
||||
fi
|
||||
|
||||
if test -f "../jre/bin/java" ; then
|
||||
if [[ "$OS" == "OSX" ]]; then
|
||||
#mac doesn't allow random binaries to be executable
|
||||
#remove the quarantine attribute so java is executable on mac
|
||||
xattr -d com.apple.quarantine ../jre/bin/java
|
||||
|
||||
if test -f "../jre/bin/java" ; then
|
||||
if [[ "$OS" == "OSX" ]]; then
|
||||
#mac doesn't allow random binaries to be executable
|
||||
#remove the quarantine attribute so java is executable on mac
|
||||
xattr -d com.apple.quarantine ../jre/bin/java
|
||||
fi
|
||||
chmod +x ../jre/bin/java #make sure java is executable
|
||||
fi
|
||||
chmod +x ../jre/bin/java #make sure java is executable
|
||||
fi
|
||||
|
||||
get_java_no_jlink() {
|
||||
|
|
|
@ -1,27 +1,28 @@
|
|||
#!/bin/bash
|
||||
|
||||
if test -f "jre/bin/java"; then
|
||||
if [[ "$OS" == "OSX" ]]; then
|
||||
#mac doesn't allow random binaries to be executable
|
||||
#remove the quarantine attribute so java is executable on mac
|
||||
xattr -d com.apple.quarantine jre/bin/java
|
||||
fi
|
||||
chmod +x jre/bin/java #make sure java is executable
|
||||
fi
|
||||
|
||||
if test -f "../jre/bin/java" ; then
|
||||
if [[ "$OS" == "OSX" ]]; then
|
||||
#mac doesn't allow random binaries to be executable
|
||||
#remove the quarantine attribute so java is executable on mac
|
||||
xattr -d com.apple.quarantine ../jre/bin/java
|
||||
if [[ -z "$DISABLE_JLINK" ]]; then
|
||||
if test -f "jre/bin/java"; then
|
||||
if [[ "$OS" == "OSX" ]]; then
|
||||
#mac doesn't allow random binaries to be executable
|
||||
#remove the quarantine attribute so java is executable on mac
|
||||
xattr -d com.apple.quarantine jre/bin/java
|
||||
fi
|
||||
chmod +x jre/bin/java #make sure java is executable
|
||||
fi
|
||||
chmod +x ../jre/bin/java #make sure java is executable
|
||||
fi
|
||||
|
||||
if test -f "../jre/bin/java" ; then
|
||||
if [[ "$OS" == "OSX" ]]; then
|
||||
#mac doesn't allow random binaries to be executable
|
||||
#remove the quarantine attribute so java is executable on mac
|
||||
xattr -d com.apple.quarantine ../jre/bin/java
|
||||
fi
|
||||
chmod +x ../jre/bin/java #make sure java is executable
|
||||
fi
|
||||
fi
|
||||
|
||||
chip=$(uname -m)
|
||||
|
||||
|
||||
get_java_no_jlink() {
|
||||
if [[ -n "$JAVA_HOME" ]] && [[ -x "$JAVA_HOME/bin/java" ]]; then
|
||||
echo "$JAVA_HOME/bin/java"
|
||||
|
|
Loading…
Add table
Reference in a new issue