Update fetch.sh

This commit is contained in:
Ward Nakchbandi (CosmicFusion) 2024-08-07 22:11:23 +02:00
parent 21b2d19f08
commit 97f8795866

View File

@ -26,7 +26,7 @@ for bin_pkg in $BIN_PACKAGE_NAME_LIST
do do
BIN_VERSION=$(apt show $bin_pkg:$PIKA_BIN_ARCH 2>&1 | grep Version: | head -n1 | cut -f2- -d":" | cut -f2- -d":" | tr -d ' ') 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.*//') TARGET_VERSION=$(echo $BIN_VERSION | sed 's/\+b.*//')
apt download -y $bin_pkg:$PIKA_BIN_ARCH || echo "$bin_pkg doesn't exist in $PIKA_BIN_ARCH" apt download -y $bin_pkg:$PIKA_BIN_ARCH || echo "Maybe Error: $bin_pkg doesn't exist in $PIKA_BIN_ARCH" && continue
if [[ $BIN_VERSION == $TARGET_VERSION ]] if [[ $BIN_VERSION == $TARGET_VERSION ]]
then then
mv ./*.deb ./output/ mv ./*.deb ./output/