aboutsummaryrefslogtreecommitdiffstats
path: root/SOURCE/CORE/core-remove.sh
diff options
context:
space:
mode:
Diffstat (limited to 'SOURCE/CORE/core-remove.sh')
-rw-r--r--SOURCE/CORE/core-remove.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/SOURCE/CORE/core-remove.sh b/SOURCE/CORE/core-remove.sh
index 7bbf8c4..24c7290 100644
--- 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