Skip to content

Commit

Permalink
Bug fix: dysfunctional kvclear when no/default KV_USER_DIR (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalkram authored Sep 23, 2022
1 parent 62369f1 commit 4118968
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kv-bash
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,6 @@ kvlist() {
# clear all key/value pairs in database
# Usage: kvclear
kvclear() {
rm -rf "$KV_USER_DIR"
}
kv_user_dir=${KV_USER_DIR:-$default_kv_user_dir}
rm -rf "$kv_user_dir"
}

0 comments on commit 4118968

Please sign in to comment.