Variable name reworking; laid foundation for GPG encryption (instead of OpenSSL)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Help requires no arguments, and is exclusive.
|
||||
if [ -n "$HELP" ]; then help; exit 0; fi
|
||||
|
||||
#==============================================================================
|
||||
# Section: Actions / Stage 3
|
||||
#==============================================================================
|
||||
# List only requires a notebook, and is exclusive.
|
||||
if [ -z "$NOTEBOOK" ]; then
|
||||
echo " ERROR: Insufficient arguments:"
|
||||
@@ -21,11 +21,16 @@ if [ -z "$NAME" ]; then
|
||||
exit 30
|
||||
fi
|
||||
|
||||
NOTEDIR="$BASEDIR"/"$NOTEBOOK"/"$SECTION"/
|
||||
NOTE="$NOTEDIR""$NAME"."$EXT"
|
||||
SESSION_ID="$RANDOM"
|
||||
NOTE_DIR="$BASE_DIR"/"$NOTEBOOK"/"$SECTION"/
|
||||
NOTE="$NOTE_DIR""$NAME"."$EXT"
|
||||
|
||||
if [ "$ENCRYPTION" == "TRUE" ]; then NOTE="$NOTE".enc; fi
|
||||
if [ "$PRINT" == "TRUE" ]; then print; exit 0; fi
|
||||
if [ "$DELETE" == "TRUE" ]; then delete; exit 0; fi
|
||||
if [ "$CREATE" == "TRUE" ]; then create; fi
|
||||
if [ "$EDIT" == "TRUE" ]; then edit; fi
|
||||
if [ "$EDIT" == "TRUE" ]; then edit; fi
|
||||
|
||||
#==============================================================================
|
||||
# End Section: Actions / Stage 3
|
||||
#==============================================================================
|
||||
Reference in New Issue
Block a user