diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-08-10 23:42:02 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-08-10 23:42:02 +0300 |
commit | c584edec5c83ba7ba0fb42a3a42d2541ed6fc35c (patch) | |
tree | 3d1694084d10e7ca64d73cfe6a28281f8c44bf67 /src | |
parent | add unlink.sh (diff) | |
download | config-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.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |