Skip to content

Make sure we get passed an argument#3

Open
a-warner wants to merge 1 commit intofakeoutfrom
fakeback
Open

Make sure we get passed an argument#3
a-warner wants to merge 1 commit intofakeoutfrom
fakeback

Conversation

@a-warner
Copy link
Owner

Make sure we have an argument

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-z is a test for strings of length 0, so this check is basically saying, if $1 (the first argument passed to the script) is empty, print usage information. (meaning the user didn’t use the script correctly)

http://tldp.org/LDP/abs/html/comparison-ops.html

@a-warner a-warner changed the title Another fake commit for screenshot purposes Make sure we get passed an argument Mar 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant