Unix - How to check if a directory exists in a shell script - Stack Overflow | Hacker News Reader