Skip to content

Instantly share code, notes, and snippets.

@rjw1
Created October 14, 2015 16:03
Show Gist options
  • Save rjw1/265c591046f4b224ff5a to your computer and use it in GitHub Desktop.
Save rjw1/265c591046f4b224ff5a to your computer and use it in GitHub Desktop.
commit b757cb9c49965e0ef55c9e93726eb4d929c0c8c5
Author: Sam J Sharpe <[email protected]>
Date: Mon Mar 10 12:15:08 2014 +0000
Bash logic is hard
It turns out that if you glob for files into an array and your glob has no matches,
then your array contains one element - the glob pattern.
This catches this as an additional success
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment