3 ms·
Shell archive it was called? There used to be a lot of installers like that.
by nottorp 3y ago
Shell archive it was called? There used to be a lot of installers like that.
- NovemberWhiskey 3y agoYup; "shar" https://en.wikipedia.org/wiki/Shar https://en.wikipedia.org/wiki/Shar
- gattilorenz 3y agoExactly. Very popular way of distributing software e.g. on alt.sources, back in the day.
- linsomniac 3y agoMinor nit: every "shar" I've seen (from distant memory) used a "here document" rather than appending (possibly binary) data to the end of a shell script. https://en.wikipedia.org/wiki/Here_document https://en.wikipedia.org/wiki/Here_document
- nottorp 3y agoHmm i have a yocto generated sdk installer handy and it seems to do just this: payload_offset=$(($(grep -na -m1 "^MARKER:$" "$0"|cut -d':' -f1) + 1)) and at the end of the code it just has: exit 0 MARKER: