Skip to content

Instantly share code, notes, and snippets.

@MKorostoff
Created February 9, 2015 22:26
Show Gist options
  • Save MKorostoff/f203e414847d43b21de4 to your computer and use it in GitHub Desktop.
Save MKorostoff/f203e414847d43b21de4 to your computer and use it in GitHub Desktop.
#!/bin/sh
function test_test() {
test -d "/some/invalid/directory" && ls -1 "/some/invalid/directory"
echo 1
}
test_test
#prints "1" without throwing an error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment