#!/bin/bash
test="https://test.centos.com/api/task_create/"
user=test
key="ehJkzdqxxxx4TbWt"
token=$(echo -n "$user`date +%Y%m%d`$key" | md5sum | awk '{print $1}')
Time=`date +%s`
jobtime=$(date +%F:%m%d%H%M%S)
download_rpm (){
> rpm.list
curl https://koji.centos.com/koji/buildinfo?buildID=${BUILDID} | grep rpm > /dev/null
[ $? -eq 0 ] || exit 1
for buildid in $(echo $BUILDID | sed 's/:/ /g');do
curl https://koji.centos.com/koji/buildinfo?buildID=${buildid} | \
grep href | grep rpm | sed -e 's#\"##g' -e 's#># #g'| \
xargs -n1 | grep ^href | grep rpm$ | \
sed 's#href=##g'|
shell程序
最新推荐文章于 2022-10-15 21:15:17 发布