mktemp can be called with the -d switch and it will create a directory
instead of a file. I believe that's the preferable way to go about it.
+
+cd $TEMPDIR
+
for _pkgname in ${pkgname[@]}; do
pkgfile=${_pkgname}-${pkgver}-${pkgrel}-${CARCH}${PKGEXT}
oldstylepkgfile=${_pkgname}-${pkgver}-${pkgrel}${PKGEXT}
@@ -90,3 +96,5 @@ for _pkgname in ${pkgname[@]}; do
echo "No filename differences for $_pkgname."
fi
done
+
+echo "Files saved to $TEMPDIR"