Skip to content

Actually mark dnx script as executable #49489

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

Merged
merged 1 commit into from
Jun 19, 2025

Conversation

dsplaisted
Copy link
Member

In #49461, I used chmod 644 instead of chmod 755 when trying to mark the dnx script as executable. Oops. This should fix that.

@Copilot Copilot AI review requested due to automatic review settings June 19, 2025 12:24
Copy link
Contributor

@Copilot Copilot AI left a 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 the executable permission for the dnx script by changing the chmod command from 644 to 755.

  • Corrects file permissions on non-Windows platforms
  • Ensures the dnx script is marked as executable
Comments suppressed due to low confidence (1)

src/Layout/redist/targets/GenerateInstallerLayout.targets:75

  • The change from 'chmod 644' to 'chmod 755' correctly updates the script's permissions to be executable. Please confirm that 755 is the desired permission level for your security and execution requirements in your deployment environments.
    <Exec Command="chmod 755 &quot;$(RedistInstallerLayoutPath)/dnx&quot;" Condition="!$([MSBuild]::IsOSPlatform('Windows'))" />

@dsplaisted dsplaisted requested a review from a team June 19, 2025 12:31
@dsplaisted dsplaisted enabled auto-merge June 19, 2025 12:44
@dsplaisted dsplaisted merged commit 2f2cc45 into dotnet:main Jun 19, 2025
31 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.

2 participants