From b8eb51184f7fd01b7ce96226b8b74cb50193be58 Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Thu, 30 Jan 2025 03:22:53 +0100 Subject: [PATCH] FIX: copy_extension declare hash array --- atom | 1 + lib/config/getDestination | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/atom b/atom index 105c41a..66cc34f 100755 --- a/atom +++ b/atom @@ -18,6 +18,7 @@ declare -A \ destinationchannels \ destinationfat32compat \ destinationcopymime \ + destinationcopyext \ destinationformat \ destinationfrequency \ destinationid \ diff --git a/lib/config/getDestination b/lib/config/getDestination index 5284c75..9792f8c 100644 --- a/lib/config/getDestination +++ b/lib/config/getDestination @@ -186,7 +186,7 @@ getConfigDestination() { destinationcopymime[$destination]="${destinationcopymime[$destination]:+${destinationcopymime[$destination]}|}$value" ;; 'copy_extension') - destinationcopyext[$destination]="${destinationcopyext[$destination]:+${destinationcopyext[$destination]}|}$value" + destinationcopyext[$destination]="${destinationcopyext[$destination]:+${destinationcopyext[$destination]}|}\.$value$" ;; 'higher-than') expr='^[0-9]*$'