Added error handling for environments where the more command does not 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.
diff --git a/makeself-header.sh b/makeself-header.sh
index 8c5b229..ed9f230 100755
--- a/makeself-header.sh
+++ b/makeself-header.sh
@@ -69,7 +69,9 @@
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