Set targets after normalization
This commit is contained in:
@@ -158,10 +158,6 @@ init() {
|
|||||||
|
|
||||||
debug "Detected host platform: $ID $VERSION_ID $ARCH"
|
debug "Detected host platform: $ID $VERSION_ID $ARCH"
|
||||||
|
|
||||||
# Set defaults
|
|
||||||
BUILD_TARGET="${BUILD_TARGET:-$ID}"
|
|
||||||
REPO_TARGET="${REPO_TARGET:-$ID}"
|
|
||||||
|
|
||||||
# Normalize ID and set distro-specific vars
|
# Normalize ID and set distro-specific vars
|
||||||
case $ID in
|
case $ID in
|
||||||
debian|arch) ;;
|
debian|arch) ;;
|
||||||
@@ -195,6 +191,10 @@ init() {
|
|||||||
fi
|
fi
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Set defaults
|
||||||
|
BUILD_TARGET="${BUILD_TARGET:-$ID}"
|
||||||
|
REPO_TARGET="${REPO_TARGET:-$ID}"
|
||||||
|
|
||||||
# Match the MC repo to the system
|
# Match the MC repo to the system
|
||||||
if [[ $ID == debian || $ID == ubuntu ]]; then
|
if [[ $ID == debian || $ID == ubuntu ]]; then
|
||||||
MC_DEFAULT_REPO=${UBUNTU_CODENAME:-${VERSION_CODENAME:-$MC_DEFAULT_REPO}}
|
MC_DEFAULT_REPO=${UBUNTU_CODENAME:-${VERSION_CODENAME:-$MC_DEFAULT_REPO}}
|
||||||
|
|||||||
Reference in New Issue
Block a user