3 script_path="$( cd -P "$( dirname "$(readlink -f "$0")" )" && pwd )"
7 for DIR in $(find "${script_path}" -type f -name "PKGBUILD" | xargs realpath | xargs dirname); do
8 PACKAGE="$(basename "${DIR}")"
9 git clone "https://aur.archlinux.org/${PACKAGE}.git" "${script_path}/temp/${PACKAGE}"
10 if [[ -n "$(ls "${script_path}/temp/${PACKAGE}")" ]]; then
12 mv "${script_path}/temp/${PACKAGE}" "${DIR}"