--color=auto breaks as `ls` is always piped. Test stdout of the whole script to determine a sensible value for the flag.
/usr/bin/env