mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
0e9cf136af
Closes #4327
8 lines
322 B
Bash
8 lines
322 B
Bash
source $stdenv/setup
|
|
|
|
loginpage=`curl --insecure -s -L -b cookies.txt "$url"`
|
|
|
|
[[ $loginpage =~ form[^\>]+action=\"([^\"]+)\" ]] && loginurl=${BASH_REMATCH[1]}
|
|
|
|
curl --insecure -s --output "$out" -L -b cookies.txt --data "appleId=${adc_user}&accountPassword=${adc_pass}" "https://idmsa.apple.com/IDMSWebAuth/${loginurl}"
|