Skip to content
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

Only read the first line for shbang. #1213

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on May 16, 2024

  1. Only read the first line for shbang.

    I noticed this when I was playing with a shbang program like:
    
       #!/usr/bin/env busybox sh
       echo hello world
    
    Melange would give a warning like this:
    
       Error reading shbang from usr/bin/hello-busybox:
          a shbang of only '/usr/bin/env' with multiple arguments
             (6 /usr/bin/env busybox sh echo "hello world")
    
    The new message would be:
    
       Error reading shbang from usr/bin/hello-busybox:
          a shbang of only '/usr/bin/env' with multiple arguments
             (3 /usr/bin/env busybox sh)
    
    Signed-off-by: Scott Moser <smoser@brickies.net>
    smoser committed May 16, 2024
    Configuration menu
    Copy the full SHA
    ad04838 View commit details
    Browse the repository at this point in the history