#!/bin/sh
cd "$(dirname "$0")"

# read URL from meta.txt
url=$(grep '^URL:' ../meta.txt | cut -d' ' -f2)
file="${url##*/}"

# read userAgent from property file
source userAgent.property.sh

curl --user-agent "$userAgent" "$url" > "$file"

cp *.xml ..

#!/bin/sh
cd "$(dirname "$0")"

# read URL from meta.txt
url=$(grep '^URL:' ../meta.txt | cut -d' ' -f2)
file="${url##*/}"

# read userAgent from property file
. ./userAgent.property.sh

curl -# --user-agent "$userAgent" "$url" > "$file"

cp *.xml ..

Fix User-Agent definition and simplify display of download progress
Fix User-Agent definition and simplify display of download progress
