def has_bash_info(filename):
    """Check if a file can be executed with bash.
    
    This basically checks if the first line contains #!/bin/bash or #!/bin/sh.
    """
    with open(filename, 'r') as infile:
        first_line = infile.readline()

    return first_line.strip() in ["#!/bin/bash", "#!/bin/sh"]