logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>
commit: c3843e196017ee3dc3a94f432f834ec4e3c3a032
parent d2b3feca5f475a3b0c5c9783b4802db71d740a0c
Author: Dor Askayo <dor.askayo@gmail.com>
Date:   Tue,  4 Jan 2022 01:06:59 +0200

Ensure help2man is writable

When not running as root, the shebang workaround requires write
permissions to modify help2man. Since the original file is read-only,
permission must be granted explicitly.

Also fix the double '/' in the /usr prefix while at it.

Diffstat:

Msysa/help2man-1.36.4/help2man-1.36.4.sh3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sysa/help2man-1.36.4/help2man-1.36.4.sh b/sysa/help2man-1.36.4/help2man-1.36.4.sh @@ -17,8 +17,9 @@ src_compile() { make MAKEINFO=true # fix a broken shebang + chmod +w help2man tail -n +6 help2man > help2man.tmp - echo "#!/${PREFIX}/bin/perl" > help2man + echo "#!${PREFIX}/bin/perl" > help2man cat help2man.tmp >> help2man rm help2man.tmp }