aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/db.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/db.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db.sh b/src/db.sh
index 2d3dd1e..bf19a81 100644
--- a/src/db.sh
+++ b/src/db.sh
@@ -16,12 +16,12 @@ update_shared_dir() {
local new_shared_dir
new_shared_dir="$( traverse_path --exist --directory -- "$1" )"
- [ new_shared_dir = / ] || new_shared_dir="$new_shared_dir/"
+ [ "$new_shared_dir" = / ] || new_shared_dir="$new_shared_dir/"
[ "$db_path" = "$shared_root_dir$default_db_name" ] \
&& db_path="$new_shared_dir$default_db_name"
- shared_dir="$new_shared_dir"
+ shared_root_dir="$new_shared_dir"
}
# Database maintenance