Skip to content

Commit

Permalink
Fix distribution package macOS version check
Browse files Browse the repository at this point in the history
Use deployment target as fallback when building distribution target
without --kext argument.
  • Loading branch information
bfleischer committed Mar 23, 2017
1 parent aaee951 commit 94ae885
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.d/targets/distribution.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# Copyright (c) 2011-2016 Benjamin Fleischer
# Copyright (c) 2011-2017 Benjamin Fleischer
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -91,6 +91,11 @@ function distribution_build
build_target_getopt -p build -s "kext:,macfuse,no-macfuse" -h distribution_build_getopt_handler -- "${@}"
unset distribution_build_getopt_handler

if [[ ${#DISTRIBUTION_KEXT_TASKS[@]} -eq 0 ]]
then
DISTRIBUTION_KEXT_TASKS+=("${BUILD_TARGET_OPTION_DEPLOYMENT_TARGET}")
fi

common_log_variable DISTRIBUTION_KEXT_TASKS
common_log_variable DISTRIBUTION_MACFUSE

Expand Down

0 comments on commit 94ae885

Please sign in to comment.