Skip to content

Check that --prefix is given an absolute path#127

Merged
NathanReb merged 1 commit intoOCamlPro:masterfrom
NathanReb:install-script-prefix-absolute
Apr 9, 2026
Merged

Check that --prefix is given an absolute path#127
NathanReb merged 1 commit intoOCamlPro:masterfrom
NathanReb:install-script-prefix-absolute

Conversation

@NathanReb
Copy link
Copy Markdown
Collaborator

Fixes #124

Makeself installation script is ran within the uncompressed archive and not from the cwd of the user when they run the .run installer. If --prefix is passed a relative path, this means the install script will try to copy the archive content within itself and fail.

This PR changes the script so that it reject relative paths given to --prefix and notifies the user.

@NathanReb NathanReb requested review from ddeclerck and rjbou April 8, 2026 10:22
Signed-off-by: Nathan Rebours <nathan.rebours@ocamlpro.com>
@NathanReb NathanReb force-pushed the install-script-prefix-absolute branch from a0198be to 44e8ec4 Compare April 8, 2026 10:24
Copy link
Copy Markdown
Contributor

@ddeclerck ddeclerck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@NathanReb NathanReb merged commit cb08f47 into OCamlPro:master Apr 9, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--prefix requires an absolute path to work; could it be enforced?

2 participants