mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
15 lines
565 B
Bash
15 lines
565 B
Bash
DISTRIBUTIONS_DESC_DIR="config/distributions"
|
|
|
|
function set_distribution_status() {
|
|
|
|
local distro_support_desc_filepath="${SRC}/${DISTRIBUTIONS_DESC_DIR}/${RELEASE}/support"
|
|
if [[ ! -f "${distro_support_desc_filepath}" ]]; then
|
|
exit_with_error "Distribution ${distribution_name} does not exist"
|
|
else
|
|
DISTRIBUTION_STATUS="$(cat "${distro_support_desc_filepath}")"
|
|
fi
|
|
|
|
[[ "${DISTRIBUTION_STATUS}" != "supported" ]] && [[ "${EXPERT}" != "yes" ]] && exit_with_error "Armbian ${RELEASE} is unsupported and, therefore, only available to experts (EXPERT=yes)"
|
|
|
|
}
|