Temporary commit (moving computers)

This commit is contained in:
Jon Lewis
2016-08-27 14:27:44 -05:00
parent c709d3e8fb
commit 704980fa2b
2 changed files with 15 additions and 8 deletions

View File

@@ -94,11 +94,12 @@ fi
#==============================================================================
# Stage 2: Argument Parsing
#==============================================================================
NOTE=""
if [ -z "$1" ]; then help; exit 20
else
ARGS="$@"
declare -i INDEX
INDEX=0
while getopts ":cCd:xe:xl:xp:xhi" ARG $VCTL; do
while getopts ":cCd:e:lp:hi" ARG $VCTL; do
let INDEX++
case "$ARG" in
c|--create)
@@ -123,7 +124,10 @@ else
OP="TRUE"
;;
l|--list)
LIST="TRUE"
echo "${ARGS[$INDEX]}"
NOTEBOOK="${ARGS[$INDEX]}"
LIST="TRUE"
OP="TRUE"
;;
p|--print)
@@ -160,10 +164,10 @@ fi
fi
# All options not requiring a note to be specified have been dealt
# with; if one isn't specified, exit on ERR_NO_NOTE.
if [ -z "$NOTE" ]; then
printf "$RED_COLOR!$RESET_COLOR %s\n" "No note specified."
exit 30
fi
#if [ -z "$NOTE" ]; then
# printf "$RED_COLOR!$RESET_COLOR %s\n" "No note specified."
# exit 30
#fi
if [ "$ENCRYPTION" == "TRUE" ]; then
SESSION_ID="$RANDOM" #SESSION_ID later becomes the temporary filename