OSDN Git Service

[add] : Added packages
[alterlinux/hayao-aur-packages.git] / sync.sh
1 #!/usr/bin/env bash
2
3 json="$(curl -Ls "https://aur.archlinux.org/rpc/?v=5&type=search&by=maintainer&arg=hayao")"
4
5 package_list=($(echo "${json}" | jq -r ".results[] | .Name"))
6
7 for pkg in ${package_list[@]}; do
8     git clone "https://aur.archlinux.org/${pkg}.git"
9     rm -rf "${pkg}/.git"
10 done