Mirror of https://git.jolheiser.com/ugit
at ffdhall 19 lines 480 B view raw
1def main [user = "jolheiser", base_url = "https://git.jolheiser.com", repos = ["ugit", "helix.drv", "tmpl"]] { 2 3 # Clean 4 try { 5 rm -r .ugit/ 6 rm -r .ssh/ 7 } 8 9 # SSH 10 mkdir .ssh 11 http get $"https://github.com/($user).keys" | save --force .ssh/authorized_keys 12 13 # Git 14 mkdir .ugit 15 for $repo in $repos { 16 git clone --bare $"($base_url)/($repo).git" $".ugit/($repo).git" 17 {"private": false, "description": $repo} | save $".ugit/($repo).git/ugit.json" 18 } 19}