I want to write a bash function that check if a file has certain properties and returns true or false. Then I can use it in my scripts in the \"if\". But what should I retur
myfun(){ [ -d "$1" ] } if myfun "path"; then echo yes fi # or myfun "path" && echo yes