Add shebang to indicate bash requirement#12732
Add shebang to indicate bash requirement#12732michaeltlombardi merged 2 commits intoMicrosoftDocs:mainfrom
Conversation
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
There was a problem hiding this comment.
Pull request overview
This PR adds shebang lines (#!/bin/bash) to shell script examples in Linux installation documentation to explicitly indicate that bash is required. The documentation date fields are also updated to reflect the current date.
Changes:
- Added
#!/bin/bashshebang to shell scripts in Ubuntu, RHEL, Debian, and Alpine installation documentation - Updated
ms.datefields to 02/04/2026 for all modified files
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| install-ubuntu.md | Added bash shebang to 2 script examples (PMC installation and direct download); updated date |
| install-rhel.md | Added bash shebang to PMC installation script; updated date |
| install-debian.md | Added bash shebang to 2 script examples (PMC installation and direct download); updated date |
| install-alpine.md | Added bash shebang to installation script; updated date |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| Then, in the terminal, execute the following shell commands to install PowerShell 7.4: | ||
|
|
||
| ```sh | ||
| #!/bin/bash |
There was a problem hiding this comment.
The shebang specifies bash, but Alpine Linux does not include bash by default and the script does not use any bash-specific features. Alpine uses ash (Almquist shell) by default. Consider changing this to #!/bin/sh for better compatibility with Alpine's default shell, or document that bash needs to be installed first. The other distribution scripts (Ubuntu, Debian, RHEL) correctly use #!/bin/bash because they use bash-specific features like source and bash parameter expansion.
| #!/bin/bash | |
| #!/bin/sh |
|
Learn Build status updates of commit 0f22f0d: ✅ Validation status: passed
For more details, please refer to the build report. |
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 23027c2: ✅ Validation status: passed
For more details, please refer to the build report. |
PR Summary
Add shebang to indicate bash requirement
PR Checklist