Skip to content

Commit

Permalink
Use the correct path across changes.
Browse files Browse the repository at this point in the history
Fixes #57.
  • Loading branch information
dak180 committed Mar 7, 2021
1 parent f12528e commit 82e51e8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion srcinstaller/Install Fink.tool
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
OSXVersion="$(sw_vers -productVersion | cut -f -2 -d .)"
DarwinVersion="$(uname -r | cut -d. -f1)"
XcodeURL="macappstore://itunes.apple.com/us/app/xcode/id497799835?mt=12"
FinkPrefix="/opt/sw"

# Starting with 10.15 we do not use /sw due to SIP.
if [ "${DarwinVersion}" -le "18" ]; then
FinkPrefix="/sw"
else
FinkPrefix="/opt/sw"
fi

# Java site: https://jdk.java.net/
Jvers="1.6"
Expand Down

0 comments on commit 82e51e8

Please sign in to comment.