aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-04-16 06:02:01 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-04-16 06:02:01 +0300
commit83daf1c8d6e0ae8ff6570bd4ab9db14c121762e8 (patch)
tree811db6518bce164124d1797cd4a913436087edd1
parentrefactoring (diff)
downloadconfig-links-83daf1c8d6e0ae8ff6570bd4ab9db14c121762e8.tar.gz
config-links-83daf1c8d6e0ae8ff6570bd4ab9db14c121762e8.zip
refactoring
-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() {