Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

invoking sudo sh not working

Open
#263 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Quiet
Tech stack
bash, shell
Domain
cli, documentation

Research direction

Start by reviewing the affected sample script's shebang and reproducing the reported sudo sh versus sudo bash ./... invocation in the Intune deployment context. Done would require a documented, project-specific explanation of the shebang choice and how the script should be invoked through tools such as Landscape.

Written by the indexing model from the issue text.

Description

I had to change my process to sudo bash ./...

why is the script using #!/usr/bin/env bash versus #!/bin/bash.

Is one better than the other? If we are using tools like landscape to push this how would that work? All my other scripts start with #!/bin/bash. Is 26.04 requiring something different? Other scripts i use worked fine so just looking for clarification.

Dominant language
Shell
Stars
1.1k
Forks
306
Avg merge
1d 12h
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/shell-intune-samples

All issues in microsoft/shell-intune-samples

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.