linux57: add interactive prompt for _misc_adds (#42)

This commit is contained in:
Adel Kara Slimane
2020-08-10 13:52:08 +02:00
committed by GitHub
parent a278361630
commit c7ff176dba
2 changed files with 10 additions and 2 deletions

View File

@@ -142,7 +142,15 @@ _tkg_srcprep() {
msg2 "Applying glitched base patch"
patch -Np1 -i "$srcdir"/0003-glitched-base.patch
if [ "$_misc_adds" = "true" ]; then
if [ -z $_misc_adds ]; then
plain "Enable misc additions ? May contain temporary fixes pending upstream or changes that can break on non-Arch. "
read -rp "`echo $' > [Y]/n : '`" _interactive_misc_adds;
if [ "$_interactive_misc_adds" != "n" ] && [ "$_interactive_misc_adds" != "N" ]; then
_misc_adds="true"
fi
fi
if [ "$_misc_adds" == "true" ]; then
msg2 "Applying misc additions patch"
patch -Np1 -i "$srcdir"/0012-misc-additions.patch
fi