From affe5e337e557553ebd668c1dc5ae6e6c9402ef7 Mon Sep 17 00:00:00 2001 From: OMRON SENTECH <38231753+ose-support-ros@users.noreply.github.com> Date: Thu, 18 Apr 2024 17:08:50 +0900 Subject: [PATCH] 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. --- makeself-header.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@ 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