added git functionality to edit and remove options.
[bash-notes.git] / SOURCE / CORE / core-remove.sh
index 7bbf8c4..24c7290 100644 (file)
@@ -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