diff options
-rwxr-xr-x | dbook | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -262,6 +262,12 @@ insert|save) ;; rm) key="${1:-$(key_menu)}" || exit 1 + + val="$(parse_data getval "$key")" + case "$val" in + ${book_data}/*) rm "$val";; + esac + rm_data "$key" ;; "") |