diff options
author | tee | 2024-03-26 22:58:31 +1300 |
---|---|---|
committer | tee | 2024-03-26 22:58:31 +1300 |
commit | 22d37e46eca718ce3c9f9d75a14d3a18658299e4 (patch) | |
tree | 52955a4598ff25743d51ef892e76c34dfe739840 /dlagent | |
parent | 26bd26487e16b765eab8a7f0bf2c51443605d726 (diff) | |
download | aur-22d37e46eca718ce3c9f9d75a14d3a18658299e4.tar.gz |
Update to 13.4
Diffstat (limited to 'dlagent')
-rwxr-xr-x | dlagent | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/dlagent b/dlagent deleted file mode 100755 index 1b2cef8890d2..000000000000 --- a/dlagent +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh -set -eu - -if [ $# -lt 3 ]; then - echo "Error: arguments base_url, file_url and target_file required." >&2 - exit 1 -fi - -base_url="$1" -file_url="$2" -target_file="$3" -success=false - -rm -f "$target_file" - -for i in 1 2 3; do - echo "Authenticating for download ..." >&2 - curl -fsSL -A Mozilla "$base_url/cookie/init.js.static.php" > /dev/null - - echo "Downloading ..." >&2 - curl -fLC - --retry 5 --retry-delay 3 -A Mozilla -o "$target_file" "$file_url" - - echo "Checking ..." >&2 - if unzip -p "$target_file" >/dev/null 2>&1; then - success=true - break - fi - - if [ $i -lt 3 ]; then - rm -f "$target_file" - echo "Warning: invalid zip file - retrying." >&2 - else - echo "Error: invalid zip file." >&2 - fi -done - -[ "$success" = "true" ] && exit 0 || exit 1 |