diff options
Diffstat (limited to 'archPackagesUpdate')
-rwxr-xr-x | archPackagesUpdate | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate index fa2a571ae..864cc58cf 100755 --- a/archPackagesUpdate +++ b/archPackagesUpdate @@ -213,6 +213,25 @@ git archive --format tar "${branch}" | \ tar -x -C "${tmpDir}" -f - cd "${tmpDir}" +if [ -f '.gitmodules' ]; then + sed -n ' + /^\s*path = /{ + N + s/^\s*path = // + s/\n\s*url = / / + s,ssh://aur@aur.archlinux.org/,https://aur.archlinux.org/, + p + } + ' '.gitmodules' | \ + while read -r path url; do + if [ -n "$(ls -A "${path}")" ]; then + git submodule update -- "${path}" + continue + fi + mkdir -p "${path}" + git clone "${url}" "${path}" + done +fi # update $0 if ${updateMe} && ${aufRechenknecht} && [ -e "$(basename "$0")" ] && ! diff -q "$(basename "$0")" "$0" &> /dev/null |