generated from general-packages/pika-pkg-template
Update fetch.sh
This commit is contained in:
parent
db039aa956
commit
1475895a9b
4
fetch.sh
4
fetch.sh
@ -18,6 +18,8 @@ then
|
|||||||
export PIKA_BIN_ARCH="i386"
|
export PIKA_BIN_ARCH="i386"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
apt-get update -y
|
||||||
|
|
||||||
mkdir -p ./output
|
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 ' ')
|
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 "Maybe Error: $bin_pkg doesn't exist in $PIKA_BIN_ARCH" && continue
|
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 ]]
|
if [[ $BIN_VERSION == $TARGET_VERSION ]]
|
||||||
then
|
then
|
||||||
|
echo "dbg0"
|
||||||
cp -vf ./*.deb ./output/
|
cp -vf ./*.deb ./output/
|
||||||
else
|
else
|
||||||
for i in ./*.deb
|
for i in ./*.deb
|
||||||
|
Loading…
Reference in New Issue
Block a user