Skip to content

Commit

Permalink
--accept should skip pager/more utility, allowing non-interactive ins…
Browse files Browse the repository at this point in the history
…tall (#305)

* --accept should skip using pager/more utility, allowing non-interactive install

Fixes #304
  • Loading branch information
bompus committed Apr 24, 2023
1 parent 948700a commit 64e1262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion makeself-header.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 64e1262

Please sign in to comment.