diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-04-16 06:02:01 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-04-16 06:02:01 +0300 |
commit | 83daf1c8d6e0ae8ff6570bd4ab9db14c121762e8 (patch) | |
tree | 811db6518bce164124d1797cd4a913436087edd1 | |
parent | refactoring (diff) | |
download | config-links-83daf1c8d6e0ae8ff6570bd4ab9db14c121762e8.tar.gz config-links-83daf1c8d6e0ae8ff6570bd4ab9db14c121762e8.zip |
refactoring
-rwxr-xr-x | update.sh | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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() { |