Fix build script wildcards

This commit is contained in:
RichardG867
2021-11-17 20:22:30 -03:00
parent 4e337a3f1f
commit 155104467e

View File

@@ -179,7 +179,7 @@ then
git log --stat -1 > VERSION || rm -f VERSION git log --stat -1 > VERSION || rm -f VERSION
# Archive source. # Archive source.
rm -f "$tarball_name.tar*" rm -f "$tarball_name.tar"*
make_tar "$tarball_name.tar" make_tar "$tarball_name.tar"
status=$? status=$?
@@ -187,11 +187,11 @@ then
if [ $status -ne 0 ] if [ $status -ne 0 ]
then then
echo [!] Tarball creation failed with status [$status] echo [!] Tarball creation failed with status [$status]
rm -f "$tarball_name.tar*" rm -f "$tarball_name.tar"*
exit 1 exit 1
else else
echo [-] Source tarball [$tarball_name] created successfully echo [-] Source tarball [$tarball_name] created successfully
mv "$tarball_name.tar*" "$cwd/" mv "$tarball_name.tar"* "$cwd/"
[ -z "$package_name" ] && exit 0 [ -z "$package_name" ] && exit 0
fi fi
fi fi