From 9b08eaa469c04c8f172b7898638c88e230a77f3b Mon Sep 17 00:00:00 2001
From: Tigriz <646-Tigriz@users.noreply.git.iiens.net>
Date: Thu, 17 Sep 2020 11:22:34 +0200
Subject: [PATCH] Update matrixpack.sh: adding type to avoid duplicates

---
 matrixpack.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/matrixpack.sh b/matrixpack.sh
index ff06e42..28964e3 100755
--- a/matrixpack.sh
+++ b/matrixpack.sh
@@ -58,11 +58,11 @@ do
     fi
     # Trim, resize and remove indexed palette from image
     echo -n "trimming and resizing"
-    convert "$f" -bordercolor none -border 1 "$slug/tmp/$f"
+    convert "$f" -bordercolor none -border 1 "$slug/tmp/$f.$type"
     echo -n "."
-    convert "$slug/tmp/$f" -trim +repage "$slug/tmp/$f"
+    convert "$slug/tmp/$f.$type" -trim +repage "$slug/tmp/$f.$type"
     echo -n "."
-    convert -background none -gravity center "$slug/tmp/$f" -resize "128x128>" -extent 128x128 $opts"$slug/tmp/$f.$type"
+    convert -background none -gravity center "$slug/tmp/$f.$type" -resize "128x128>" -extent 128x128 $opts"$slug/tmp/$f.$type"
     echo -ne ". \033[92mdone\033[0m! "
     
     # First item in array
-- 
GitLab