summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Queen <bompus@users.noreply.github.com>2023-04-24 14:04:02 -0600
committerGitHub <noreply@github.com>2023-04-24 13:04:02 -0700
commit64e126283849773e1f519cb3ccd8a428a12c9eb4 (patch)
treeb5809487a0807404fc6ab30c8c389e300c86193e
parent948700a5c51f4fd0972317ba7c8199fb270007e4 (diff)
downloadmakeself-64e126283849773e1f519cb3ccd8a428a12c9eb4.tar.gz
--accept should skip pager/more utility, allowing non-interactive install (#305)
* --accept should skip using pager/more utility, allowing non-interactive install Fixes #304
-rwxr-xr-xmakeself-header.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/makeself-header.sh b/makeself-header.sh
index 17bf32d..20c8c9d 100755
--- a/makeself-header.sh
+++ b/makeself-header.sh
@@ -67,7 +67,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"