Created
August 6, 2011 20:13
-
-
Save wayneeseguin/1129705 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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