Commit cc77e9b0 authored by js's avatar js 💬
Browse files

Must always have an argument

parent 28a78d02
......@@ -19,6 +19,14 @@ function displayUsage {
echo ""
}
# check argument count
if [ "$#" = 0 ]; then
echo ""
echo "Error. Invalid argument."
displayUsage
exit 1
fi
# check inputs
for CURRENT_ITEM in "$@"
do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment