danix
's git repository
home
/
my projects
/
bash-notes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added git functionality to edit and remove options.
[bash-notes.git]
/
SOURCE
/
CORE
/
core-remove.sh
diff --git
a/SOURCE/CORE/core-remove.sh
b/SOURCE/CORE/core-remove.sh
index
7bbf8c4
..
24c7290
100644
(file)
--- a/
SOURCE/CORE/core-remove.sh
+++ b/
SOURCE/CORE/core-remove.sh
@@
-16,6
+16,7
@@
rmnote() {
mv $TMPDB $DB
# shellcheck disable=SC2086
rm $NOTESDIR/*
+ gitremove "all"
echo "Deleted all notes"
;;
* )
@@
-43,6
+44,7
@@
rmnote() {
# shellcheck disable=SC2086
mv $TMPDB $DB
rm $NOTESDIR/$FILE
+ gitremove $OK $FILE
echo "Deleted note $TITLE"
sleep 1
exit