Update fetch.sh

This commit is contained in:
Ward Nakchbandi (CosmicFusion) 2024-08-07 22:21:13 +02:00
parent db039aa956
commit 1475895a9b

View File

@ -18,6 +18,8 @@ then
export PIKA_BIN_ARCH="i386"
fi
apt-get update -y
mkdir -p ./output
#
@ -27,8 +29,10 @@ 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 [[ $BIN_VERSION == $TARGET_VERSION ]]
then
echo "dbg0"
cp -vf ./*.deb ./output/
else
for i in ./*.deb