Simple Note System v2.0a2

Changes:
Split script into several different files for easier editting
Added build.sh to compile Simple Note System from tree
Changed config file to config folder; $HOME/.sns now contains configuration and notes

Testing:
Script runs and produces help screen; no further testing done.
This commit is contained in:
Jon-William Lewis
2015-03-18 12:52:00 -05:00
parent 1864543bf5
commit 45717e33b5
13 changed files with 538 additions and 175 deletions

22
functions/print.sns.sh Normal file
View File

@@ -0,0 +1,22 @@
#==========================================================================
# Subection: Print
#==========================================================================
if [ "$PRINT" == "TRUE" ]; then
if [ -r "$NOTE" -o -r ${NOTE%.*} ]; then
if [ -z "$CREATE" ]; then
if [ "$ENCRYPTION" == "TRUE" ]; then
openssl enc -d -aes-256-cbc -in ${NOTE%.*} -pass pass:$ENC_KEY
else
cat $NOTE
echo "" >> $NOTE
fi
else
echo ""
echo "ERROR: Note cannot be found."
echo ""
fi
fi
fi