18 lines
384 B
Bash
18 lines
384 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
targets="$@"
|
||
|
for t in $targets
|
||
|
do
|
||
|
if [ -d "$t" ]
|
||
|
then
|
||
|
echo "$t already exists, not getting"
|
||
|
else
|
||
|
echo "Getting $t"
|
||
|
git clone "http://adamgoldsmith.name/cgit/dotfiles/$t.git"
|
||
|
cd $t
|
||
|
git remote set-url origin http://adamgoldsmith.name/cgit/dotfiles/$t.git
|
||
|
git remote set-url --push origin ssh://adamgoldsmith.name:443/srv/git/dotfiles/$t.git
|
||
|
cd ..
|
||
|
fi
|
||
|
done
|