mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-05 19:05:24 +01:00
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.
This commit is contained in:
parent
d2b3feca5f
commit
c3843e1960
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue