I'm following this procedure to create a file compactado
autoexecutável
but I'm not succeeding, is there something missing?
pacote.tar.gz
pacote.sh
file with the following content: #!/bin/sh
skip=4
tail +$skip $0 1 | tar -xzf - -C /
exit
cat pacote.tar.gz >> pacote.sh
To test, I run:
bash pacote.sh
And I get the following error:
tail: could not open "+4" to read: File or directory not found tail: could not open "1" to read: File or directory not found
gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now