Default to Arch target when _distro is empty or when using the PKGBUILD
Fixes https://github.com/Frogging-Family/linux-tkg/issues/104
This commit is contained in:
@@ -9,7 +9,13 @@ ver510=rc1
|
||||
_tkg_initscript() {
|
||||
# Load external configuration file if present. Available variable values will overwrite customization.cfg ones.
|
||||
if [ -e "$_EXT_CONFIG_PATH" ]; then
|
||||
source "$_EXT_CONFIG_PATH" && msg2 "External configuration file $_EXT_CONFIG_PATH will be used to override customization.cfg values." && msg2 ""
|
||||
source "$_EXT_CONFIG_PATH" && msg2 "External configuration file $_EXT_CONFIG_PATH will be used to override customization.cfg values.\n"
|
||||
fi
|
||||
|
||||
# Default to Arch
|
||||
if [ -z "$_distro" ] || [ "$_ispkgbuild" = "true" ]; then
|
||||
msg2 "Defaulting to Archlinux target\n"
|
||||
_distro="Arch"
|
||||
fi
|
||||
|
||||
# create build dir early
|
||||
|
Reference in New Issue
Block a user