From aa1d9f0238331f218519da121d8e0dd005bb1f27 Mon Sep 17 00:00:00 2001
From: Aaron Queen <bompus@users.noreply.github.com>
Date: Tue, 25 Apr 2023 05:50:19 -0600
Subject: [PATCH] Prevent pager from preventing non-interactive install
 (#14950)

* prevent pager from preventing non-interactive install

* Update makeself-header.sh
---
 packaging/makeself/makeself-header.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packaging/makeself/makeself-header.sh b/packaging/makeself/makeself-header.sh
index fc54b004a9..47992b2caa 100755
--- a/packaging/makeself/makeself-header.sh
+++ b/packaging/makeself/makeself-header.sh
@@ -70,7 +70,7 @@ MS_PrintLicense()
   PAGER=\${PAGER:=more}
   if test x"\$licensetxt" != x; then
     PAGER_PATH=\`exec <&- 2>&-; which \$PAGER || command -v \$PAGER || type \$PAGER\`
-    if test -x "\$PAGER_PATH"; then
+    if test -x "\$PAGER_PATH" && test x"\$accept" != xy; then
       echo "\$licensetxt" | \$PAGER
     else
       echo "\$licensetxt"