From b7386a2814be71793dc84e410569dbc65707bc4b Mon Sep 17 00:00:00 2001 From: Jaidyn Levesque Date: Sun, 2 Oct 2022 12:10:39 -0500 Subject: [PATCH] Fix default avatar path --- dino-chat-export.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dino-chat-export.sh b/dino-chat-export.sh index 8ecb9fb..461fc04 100755 --- a/dino-chat-export.sh +++ b/dino-chat-export.sh @@ -165,6 +165,12 @@ archive_files_with_partner() { THEIR_AVATAR="$(archive_avatars "$account_id" "$partner_id" "$output_dir/avatar" | head -1)" YOUR_AVATAR="$(archive_avatars "$account_id" "$(account_jid_id "$account_id")" "$output_dir/your_avatar" | head -1)" + if test -z "$THEIR_AVATAR"; then + THEIR_AVATAR="files/their_avatar.png" + fi + if test -z "$YOUR_AVATAR"; then + YOUR_AVATAR="files/your_avatar.png" + fi local files="$(sqlite "$DB_FILE" \ "SELECT path