mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-10 05:17:44 +02:00
Added clone-repos.ps1
This commit is contained in:
19
Scripts/clone-repos.ps1
Normal file
19
Scripts/clone-repos.ps1
Normal 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
|
Reference in New Issue
Block a user