Linux uses dash for sh and doesn't recognize the [[ ]] syntax. This change eliminates the [[ ]] syntax and replaces it with a test to detect bsd vs gnu stat. This should be OS agnostic and work across multiple OS without having to test individually for each one.
Linux uses dash for sh and doesn't recognize the [[ ]] syntax. This change eliminates the [[ ]] syntax and replaces it with a test to detect bsd vs gnu stat. This should be OS agnostic and work across multiple OS without having to test individually for each one.