Test commit
This commit is contained in:
27
clone.sh
Normal file
27
clone.sh
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eou pipefail
|
||||
set -x
|
||||
|
||||
maintainer="proledatarian"
|
||||
directory="/home/arne/.aur"
|
||||
|
||||
cd $directory
|
||||
|
||||
repos=$(curl https://aur.archlinux.org/rpc/v5/search/${maintainer}?by=maintainer | jq -r '.results[].Name')
|
||||
declare -a repos
|
||||
repos+=('amdfand-bin')
|
||||
|
||||
for repo in $repos
|
||||
do
|
||||
if [[ -d ${repo} ]]; then
|
||||
echo "Verzeichnis existiert beretis."
|
||||
cd ${repo}
|
||||
git pull
|
||||
cd ${directory}
|
||||
echo
|
||||
else
|
||||
git clone ssh://aur@aur.archlinux.org/${repo}.git
|
||||
echo
|
||||
fi
|
||||
done
|
Reference in New Issue
Block a user