Added clone-repos.ps1

This commit is contained in:
Markus Fleschutz
2020-12-01 11:24:56 +00:00
parent 3939fc7905
commit f071a14129
2 changed files with 20 additions and 0 deletions

19
Scripts/clone-repos.ps1 Normal file
View File

@ -0,0 +1,19 @@
#!/snap/bin/powershell
# Syntax: ./clone-repos.ps1
# Description: clones well-known Git repositories
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
# License: CC0
$Repos = "https://github.com/fleschutz/PowerShell","https://github.com/fleschutz/CWTS"
foreach ($Repo in $Repos) {
$Answer = read-host "Do you want to clone $Repo (y/n)"
if ($Answer -eq "y") {
git clone $Repos
}
}
write-host "Done."
exit 0