Avoid repetition of live database name (thanks to Tony Finch once again)
1 files changed, 4 insertions(+), 3 deletions(-)

M fetch-sanesecurity-sigs
M fetch-sanesecurity-sigs +4 -3
@@ 194,9 194,10 @@ installed=0
 for db in "$cache_dir"/*.?db "$cache_dir"/*.ftm
 do
 	db_name=$(basename "$db")
+	db_live="$db_live"
 
 	# Only pay any attention to this database if it's newer than the installed version
-	if [ -e "$clamd_dbdir/sanesecurity-$db_name" -a ! "$db" -nt "$clamd_dbdir/sanesecurity-$db_name" ]
+	if [ -e "$db_live" -a ! "$db" -nt "$db_live" ]
 	then
 		echo "$db_name is already up-to-date; skipping"
 		continue

          
@@ 233,8 234,8 @@ do
 	fi
 
 	# Now we can actually install this database
-	echo "Installing $db_name into $clamd_dbdir/sanesecurity-$db_name"
-	if rsync -p "$db" "$clamd_dbdir/sanesecurity-$db_name"
+	echo "Installing $db_name into $db_live"
+	if rsync -p "$db" "$db_live"
 	then
 		installed=$((installed+1))