summarylogtreecommitdiffstats
path: root/prepare
diff options
context:
space:
mode:
authorsayad2021-01-26 12:59:40 +0600
committersayad2021-01-26 12:59:40 +0600
commitaddd94855e22e3070f949cc20bd5edf7a87efe74 (patch)
treed5e893cf63f6e0d064692416acc0782765c48106 /prepare
parentb17e50bc39254810cc0949b4164d363e9b1c8a1d (diff)
downloadaur-addd94855e22e3070f949cc20bd5edf7a87efe74.tar.gz
Bug fix
Diffstat (limited to 'prepare')
-rw-r--r--prepare8
1 files changed, 6 insertions, 2 deletions
diff --git a/prepare b/prepare
index 08d71754b14f..2c375ea333b2 100644
--- a/prepare
+++ b/prepare
@@ -13,8 +13,11 @@ _tkg_initscript() {
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
echo "_basever=510" > "$_path"/versel
echo "_basekernel=5.10" >> "$_path"/versel
@@ -61,8 +64,9 @@ _tkg_initscript() {
echo "_cpusched=\"MuQSS\"" > "${_path}"/cpuschedset
elif [ "$CONDITION" = "5" ]; then
echo "_cpusched=\"cfs\"" > "${_path}"/cpuschedset
- else
- echo "_cpusched=\"cfs\"" > "${_path}"/cpuschedset
+ else
+ echo "_cpusched=\"cfs\"" > "${_path}"/cpuschedset
+ fi
fi
if [ -n "$_custom_pkgbase" ]; then
echo "_custom_pkgbase=\"${_custom_pkgbase}\"" >> "${_path}"/cpuschedset