Skip to content

Commit

Permalink
Evaluate variables in helpheader (megastep#292)
Browse files Browse the repository at this point in the history
And move it to the end of the help message.
  • Loading branch information
hgdagon authored Feb 25, 2023
1 parent 117e41d commit 7ef2e4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions makeself-header.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ script="$SCRIPT"
scriptargs="$SCRIPTARGS"
cleanup_script="${CLEANUP_SCRIPT}"
licensetxt="$LICENSE"
helpheader='$HELPHEADER'
helpheader="${HELPHEADER}"
targetdir="$archdirname"
filesizes="$filesizes"
totalsize="$totalsize"
Expand Down Expand Up @@ -157,7 +157,7 @@ MS_dd_Progress()
MS_Help()
{
cat << EOH >&2
\${helpheader}Makeself version $MS_VERSION
Makeself version $MS_VERSION
1) Getting help or info about \$0 :
\$0 --help Print this message
\$0 --info Print embedded info : title, default target directory, embedded script ...
Expand Down Expand Up @@ -190,7 +190,7 @@ MS_Help()
on the current terminal.
--cleanup-args args Arguments to the cleanup script. Wrap in quotes to provide
multiple arguments.
-- Following arguments will be passed to the embedded script
-- Following arguments will be passed to the embedded script\${helpheader}
EOH
}
Expand Down

0 comments on commit 7ef2e4d

Please sign in to comment.