aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/update.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xupdate.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/update.sh b/update.sh
index 4a98cb7..0e3cf0e 100755
--- a/update.sh
+++ b/update.sh
@@ -205,16 +205,16 @@ update_shared_dir() {
local new_shared_dir
new_shared_dir="$( traverse_path --exist --directory -- "$1" )"
- [ "$db_path" == "$shared_dir/$default_db_fn" ] \
- && db_path="$new_shared_dir/$default_db_fn"
+ [ "$db_path" == "$shared_dir/$default_db_name" ] \
+ && db_path="$new_shared_dir/$default_db_name"
shared_dir="$new_shared_dir"
}
# Database maintenance
-readonly default_db_fn='links.bin'
-db_path="$shared_dir/$default_db_fn"
+readonly default_db_name='links.bin'
+db_path="$shared_dir/$default_db_name"
declare -A database
update_database_path() {