Update fetch.sh

This commit is contained in:
Ward Nakchbandi (CosmicFusion) 2024-08-07 22:23:34 +02:00
parent 120aa70061
commit 9374209035

View File

@ -28,11 +28,10 @@ for bin_pkg in $BIN_PACKAGE_NAME_LIST
do
BIN_VERSION=$(apt show $bin_pkg:$PIKA_BIN_ARCH 2>&1 | grep Version: | head -n1 | cut -f2- -d":" | cut -f2- -d":" | tr -d ' ')
TARGET_VERSION=$(echo $BIN_VERSION | sed 's/\+b.*//')
apt download -y $bin_pkg:$PIKA_BIN_ARCH || echo "Maybe Error: $bin_pkg doesn't exist in $PIKA_BIN_ARCH" && continue
ls
if apt download -y $bin_pkg:$PIKA_BIN_ARCH
then
if [[ $BIN_VERSION == $TARGET_VERSION ]]
then
echo "dbg0"
cp -vf ./*.deb ./output/
else
for i in ./*.deb
@ -44,4 +43,7 @@ do
cp -vf ./*-fixed.deb ./output/
done
fi
else
echo "Maybe Error: $bin_pkg doesn't exist in $PIKA_BIN_ARCH"
fi
done