From 83daf1c8d6e0ae8ff6570bd4ab9db14c121762e8 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 16 Apr 2017 06:02:01 +0300 Subject: refactoring --- update.sh | 8 ++++---- 1 file 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() { -- cgit v1.2.3