-
-
Notifications
You must be signed in to change notification settings - Fork 398
Fix #349: pre-extraction script execution in combination with --notemp #350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
vladermolaev
commented
Oct 15, 2025
- MS_Preextract creates temp script in $location rather than $tmpdir
- New test case to verify the fix in test/preextracttest
|
Afraid this breaks other tests... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes issue #349 where pre-extraction scripts would fail when using the --notemp flag. The fix ensures that the pre-extraction script executes in $location (the extraction directory) instead of $tmpdir (which doesn't exist when --notemp is used). A new test case validates that pre-extraction scripts work correctly with the --notemp flag.
- Changed pre-extraction script execution directory from
$tmpdirto$location - Added test case
testPreextractNotempto verify pre-extraction scripts work with--notemp
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| makeself-header.sh | Changed pre-extraction script execution to use $location instead of $tmpdir |
| test/preextracttest | Added test case to verify pre-extraction scripts work with --notemp flag |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
ea21f45 to
6e476fb
Compare
… --notemp - MS_Preextract uses basename of pre-extraction script to run it - New test case to verify the fix in test/preextracttest
|
Please review. All tests are green now. |
|
OK, the NetBSD test fails but I think that's unrelated (been broken for a while). I'll merge, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (1)
makeself-header.sh:1
- The prescript is created in
$location(line 327) but executed from$tmpdir(line 331). If these directories differ (as with --notemp), the script won't be found at./\$prescript_basename. The script should either be created in$tmpdiror the execution should reference the correct directory.
cat << EOF > "$archname"
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.