v2.0a3 -> v2.0a4
Rearranged tree to be more sane. Made formatting changes to stage 2. Fixed a bug where edit would be bypassed if the note was just created.
This commit is contained in:
@@ -17,7 +17,7 @@ fi
|
||||
|
||||
if [ "$ENCRYPTION" == "TRUE" ]; then
|
||||
PROD_STR="Simple Note System (Encryption Enabled)"
|
||||
EXT="$EXT.enc"
|
||||
EXT="$EXT"
|
||||
if [ ! -d ~/.sns/tmp ]; then
|
||||
mkdir -p ~/.sns/tmp
|
||||
fi
|
||||
@@ -36,5 +36,5 @@ pause
|
||||
fi
|
||||
|
||||
#==============================================================================
|
||||
# End Section: Read Configuration
|
||||
# End Section: Configuration
|
||||
#==============================================================================
|
||||
|
||||
@@ -19,7 +19,7 @@ else #Assume the user wants to do something.
|
||||
elif [ "$ARG" = "-p" -o "$ARG" = "--print" ]; then PRINT="TRUE"
|
||||
elif [ "$ARG" = "-l" -o "$ARG" = "--list" ]; then LIST="TRUE"
|
||||
elif [ "$ARG" = "-h" -o "$ARG" == "--help" ]; then help; exit 0
|
||||
elif [ "$ARG" = "-w" -o "$ARG" == "--wconf" ]; then writeconf; exit
|
||||
elif [ "$ARG" = "-w" -o "$ARG" == "--wconf" ]; then w_conf; exit
|
||||
else
|
||||
if [ -z "$NAME" -a -n $ARG ]; then
|
||||
NAME=$ARG
|
||||
@@ -36,7 +36,7 @@ else #Assume the user wants to do something.
|
||||
fi
|
||||
fi
|
||||
|
||||
# Note: writeconf has highest priority, and it is the only function that can
|
||||
# Note: w_conf has highest priority, and it is the only function that can
|
||||
# work without any parameters.
|
||||
|
||||
#==============================================================================
|
||||
|
||||
@@ -25,6 +25,7 @@ fi
|
||||
NOTEDIR=$BASEDIR/$NOTEBOOK/$SECTION/
|
||||
NOTE=$NOTEDIR$NAME.$EXT
|
||||
|
||||
if [ "$ENCRYPTION" == "TRUE" ]; then NOTE=$NOTE.tmp fi
|
||||
|
||||
|
||||
if [ "$ENCRYPTION" == "TRUE" ]; then NOTE=$NOTE.enc; fi
|
||||
if [ "$PRINT" == "TRUE" ]; then print; exit 0; fi
|
||||
if [ "$CREATE" == "TRUE" ]; then create; fi
|
||||
if [ "$EDIT" == "TRUE" ]; then edit; fi
|
||||
Reference in New Issue
Block a user