diff options
author | sinanmohd <sinan@firemail.cc> | 2023-08-01 11:31:05 +0530 |
---|---|---|
committer | sinanmohd <sinan@firemail.cc> | 2023-08-01 13:57:28 +0530 |
commit | 8b8db40fa51fd314e42363574bbae52870fc2bac (patch) | |
tree | e603fcdd2aa878ec03fbe8f1d931b57c64bbd23a /dbook | |
parent | 996a41ae087b8104e5218a456c58b1a0b72eed95 (diff) |
dbook: delete saved data when key is removed
Diffstat (limited to 'dbook')
-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" ;; "") |