Skip to content

Commit

Permalink
Added error handling for environments where the more command does not…
Browse files Browse the repository at this point in the history
… support the -e option.

In environments where the more command version is 2.35 or lower, the -e option is treated as an error, so if an error occurs, try again without the option.
  • Loading branch information
ose-support-ros authored and megastep committed Apr 18, 2024
1 parent 271b54a commit affe5e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion makeself-header.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ MS_PrintLicense()
if test x"\$licensetxt" != x; then
PAGER_PATH=\`exec <&- 2>&-; which \$PAGER || command -v \$PAGER || type \$PAGER\`
if test -x "\$PAGER_PATH" && test x"\$accept" != xy; then
echo "\$licensetxt" | \$PAGER -e
if ! echo "\$licensetxt" | \$PAGER -e; then
echo "\$licensetxt" | \$PAGER
fi
else
echo "\$licensetxt"
fi
Expand Down

0 comments on commit affe5e3

Please sign in to comment.