diff --git a/fetch.sh b/fetch.sh index f7b586c86..da86450da 100755 --- a/fetch.sh +++ b/fetch.sh @@ -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