Skip to content

Commit

Permalink
Fix distribution package macOS version check
Browse files Browse the repository at this point in the history
  • Loading branch information
bfleischer committed Mar 4, 2017
1 parent 59f2684 commit 0affad3
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions build.d/extensions/osxfuse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -217,18 +217,6 @@ function osxfuse_build_distribution_package
<welcome file="Welcome.rtf"/>
<license file="License.rtf"/>
<options customize="always" rootVolumeOnly="true" require-scripts="false"/>
<choices-outline>
EOF

for identifier in "${component_packages_identifiers[@]}"
do
/bin/cat >> Distribution <<EOF
<line choice="${identifier}"/>
EOF
done

/bin/cat >> Distribution <<EOF
</choices-outline>
EOF

local i=0
Expand All @@ -252,6 +240,19 @@ EOF
done

/bin/cat >> Distribution <<EOF
<choices-outline>
EOF

for identifier in "${component_packages_identifiers[@]}"
do
/bin/cat >> Distribution <<EOF
<line choice="${identifier}"/>
EOF
done

/bin/cat >> Distribution <<EOF
</choices-outline>
<installation-check script='installationCheck()'/>
<script><![CDATA[
function isProductVersion(version) {
return system.version.ProductVersion.slice(0, version.length) == version;
Expand Down

0 comments on commit 0affad3

Please sign in to comment.