You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
KasmVNC/contrib/packages/rpm/el6/SOURCES/fetch_sources.sh

10 lines
171 B
Bash

#!/bin/bash
SPEC=$1
SOURCES=`grep -i "^SOURCE\d\+\s*:\s*\([fht]\+tp://.*\)" ${SPEC} | sed -e 's/^.*:[[:space:]]//'`
for URL in ${SOURCES} ; do
curl -OL ${URL}
done