Code cleanup
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
#==============================================================================
|
||||
# Section: Actions / Stage 3
|
||||
#==============================================================================
|
||||
# Default behavior
|
||||
# If no operation was specified, print help and exit on ERR_NO_OP
|
||||
if [ "$OP" != "TRUE" ]; then
|
||||
help; exit 20
|
||||
fi
|
||||
# All options not requiring at least a notebook to be specified have been dealt
|
||||
# with; if one isn't specified, throw code 30.
|
||||
# with; if one isn't specified, exit on ERR_NO_NOTEBOOK.
|
||||
if [ -z "$NOTEBOOK" ]; then
|
||||
printf "\n%s\n %s\n" "ERROR: Insufficient arguments:" "Notebook not specified"
|
||||
exit 30
|
||||
|
||||
Reference in New Issue
Block a user