-
-
Notifications
You must be signed in to change notification settings - Fork 379
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
Update makeself-header.sh to better handle relative paths and provide… #328
base: master
Are you sure you want to change the base?
Conversation
… a launching script name to a startup_script Update the ARCHIVE_DIR variable to provide an absolute path even when the makeself script is launched with a relative path. An absolute path is needed when the startup script is ask to place folder and files in a directory relative to the makeself script location. Add the ARCHIVE_BASE variable. This provides the name of the originating makeself script. This is useful to provide feedback to the user in for example 'usage' messages.
Interesting idea, however it seems to break a number of our tests at the moment. |
What can I do to help this change pass the tests it is failing?
…On Fri, Apr 12, 2024, 6:09 PM Stéphane Peter ***@***.***> wrote:
Interesting idea, however it seems to break a number of our tests at the
moment.
—
Reply to this email directly, view it on GitHub
<#328 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BHZFKWOFWYIBZAIX3X5432TY5BSRZAVCNFSM6AAAAABGE4HKVGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJSGY3TENBRGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Try to run the tests yourself ( |
FYI, the variable test seems to be the main culprit. |
makeself-header.sh
Outdated
@@ -15,8 +15,11 @@ SIGNATURE="$Signature" | |||
TMPROOT=\${TMPDIR:=/tmp} | |||
USER_PWD="\$PWD" | |||
export USER_PWD | |||
ARCHIVE_DIR=\`dirname "\$0"\` | |||
ARCHIVE_DIR=\$( cd -- "\$(dirname "\$0")" >/dev/null 2>&1 ; echo \$PWD ) |
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.
One problem here is that the $()
syntax is a modern bash-ism which is not very portable (unlike the backtick approach).
replaced with back ticks for better backward compatibility
… a launching script name to a startup_script
Update the ARCHIVE_DIR variable to provide an absolute path even when the makeself script is launched with a relative path. An absolute path is needed when the startup script is ask to place folder and files in a directory relative to the makeself script location.
Add the ARCHIVE_BASE variable. This provides the name of the originating makeself script. This is useful to provide feedback to the user in for example 'usage' messages.