weird bash not found error in mac terminal

weird bash not found error in mac terminal
Weird
Image by Inha Leex Hale
why will one script(capture.sh) execute fine and the other (videochecker.sh) gives this weird bash error?
but then i saw they had different first lines.

one is /bin/sh and one is /bin/bash

weird thing to because the one that doesn’t work on this machine (/bin/bash) has been working fine on the other broadcaster mac min for several weeks. scripts still very mysterious to me.

so i change it so #!/bin/sh and #! /bin/sh still no go…

: No such file or directory#!/bin/sh
: command not foundline 2:
: command not foundline 5:
: command not foundline 7:
: command not foundline 9:
‘/videochecker.sh: line 72: syntax error near unexpected token `do
‘/videochecker.sh: line 72: `for f in *.mp4; do

One thought on “weird bash not found error in mac terminal

  1. also, as directed by jamie 2 photos ago.

    bash -ex ./videochecker.sh
    ‘ ‘#!/bin/sh
    : No such file or directory#!/bin/sh
    Clarence$ bash -ex ./videochecker.sh
    ‘ ‘#!/bin/bash
    : No such file or directory#!/bin/bash
    Clarence$ echo $SHELL
    /bin/bash

Leave a Reply

Your email address will not be published. Required fields are marked *

Proudly powered by WordPress
Theme: Esquire by Matthew Buchanan.