Skip to content

Instantly share code, notes, and snippets.

@wayneeseguin
Created August 6, 2011 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wayneeseguin/1129705 to your computer and use it in GitHub Desktop.
Save wayneeseguin/1129705 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bdsm
myarray=(a b c)
if (( "${#myarray[@]}" > 0 ))
then
echo "Not so much fun figuring out how to check if an array is not empty... :("
fi
modules ext/array
if array_is_nonempty my_array
then
echo "That was actually kinda fun, and easy! Let's do it again!!! "
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment