2 ms·
Minor 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
by linsomniac 3y ago
Minor 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: