Skip to content

Use $BIN_DIR instead of '~/bin' if it is defined#43

Closed
sensebat wants to merge 2 commits intopyroscope:masterfrom
sensebat:master
Closed

Use $BIN_DIR instead of '~/bin' if it is defined#43
sensebat wants to merge 2 commits intopyroscope:masterfrom
sensebat:master

Conversation

@sensebat
Copy link
Copy Markdown

pyrocore/update-to-head.sh uses the same parameter substitution.

pyrocore/update-to-head.sh uses the same parameter substitution.
If the user does not specify a non-zero $PREFIX in his environment, then
the build.sh script will fall back to installing inside $HOME.
@sensebat
Copy link
Copy Markdown
Author

See https://github.com/sensebat/rtorrent-ps/commit/63442d67ef25eb88458208903fec2312714abe8f for an example how to implement a flexible prefix of installation.

No input validation, though, this should definitely not be run as root. If I recall correctly, the only dangerous commands for this would be inside install() and pkg2deb() and even those would only use $PKG_INST_DIR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants