aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/db.sh
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2019-08-10 23:42:02 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2019-08-10 23:42:02 +0300
commitc584edec5c83ba7ba0fb42a3a42d2541ed6fc35c (patch)
tree3d1694084d10e7ca64d73cfe6a28281f8c44bf67 /src/db.sh
parentadd unlink.sh (diff)
downloadconfig-links-c584edec5c83ba7ba0fb42a3a42d2541ed6fc35c.tar.gz
config-links-c584edec5c83ba7ba0fb42a3a42d2541ed6fc35c.zip
don't fail if there's no database file
Diffstat (limited to '')
-rw-r--r--src/db.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/db.sh b/src/db.sh
index ab1f82f..2d3dd1e 100644
--- a/src/db.sh
+++ b/src/db.sh
@@ -28,9 +28,9 @@ update_shared_dir() {
readonly default_db_name='links.bin'
db_path="$shared_root_dir$default_db_name"
-declare -A database
-declare -A shared_paths
-declare -A symlink_paths
+declare -A database=()
+declare -A shared_paths=()
+declare -A symlink_paths=()
update_database_path() {
if [ "$#" -ne 1 ]; then