Skip to content
Snippets Groups Projects
Commit e13eb49b authored by nimrod's avatar nimrod
Browse files

- Handle case when parameters are passed.

- Remove task from TODO list.
parent 73f3cf13
No related branches found
No related tags found
No related merge requests found
...@@ -63,8 +63,3 @@ Simply run: ...@@ -63,8 +63,3 @@ Simply run:
.. code:: shell .. code:: shell
make test make test
TODO
----
- Detect when no parameters are passed and output a usage message.
...@@ -78,4 +78,10 @@ bundle_certs () { ...@@ -78,4 +78,10 @@ bundle_certs () {
rm -r certs rm -r certs
} }
if [ ! "$sourced" ] && [ $# -eq 0 ]
then
echo "Usage: $0 filename [filename2 [filename3 ...]]" > /dev/stderr
exit 1
fi
[ ! "$sourced" ] && bundle_certs "$@" [ ! "$sourced" ] && bundle_certs "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment