megastep / makeself

A self-extracting archiving tool for Unix systems, in 100% shell script.
https://makeself.io
GNU General Public License v2.0
2.32k stars 372 forks source link

Evaluate variables in helpheader #292

Closed hgdagon closed 1 year ago

hgdagon commented 1 year ago

Allow for variable usage in helpheader.

Example:


 3) Additional arguments specific to $label :
  --installdir          Set the installation directory
  --someflag            Set someflag
  --otherflag           Set some other flag

  Example:
    $0 -- --installdir=~/Applications/MyApp --someflag

Note the double empty lines at the start of the file.

megastep commented 1 year ago

Looking at your commit it seems like you're just moving the $helpheader from the beginning to the end though?

hgdagon commented 1 year ago

@megastep Yes, but the main change is on line 26, evaluating the variables in the text file.

megastep commented 1 year ago

Right, I didn't notice the change in the type of quotes at first. Looks good.