From c584edec5c83ba7ba0fb42a3a42d2541ed6fc35c Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 10 Aug 2019 23:42:02 +0300 Subject: don't fail if there's no database file --- src/db.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 -- cgit v1.2.3