From 82e51e81bc0599dfa3c0151b96241d5b0c0e8679 Mon Sep 17 00:00:00 2001 From: dak180 Date: Sun, 7 Mar 2021 05:13:05 +0000 Subject: [PATCH] Use the correct path across changes. Fixes #57. --- srcinstaller/Install Fink.tool | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/srcinstaller/Install Fink.tool b/srcinstaller/Install Fink.tool index 6365d8e..4859aed 100755 --- a/srcinstaller/Install Fink.tool +++ b/srcinstaller/Install Fink.tool @@ -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"