mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-23 00:13:36 +01:00
20 lines
743 B
PowerShell
Executable File
20 lines
743 B
PowerShell
Executable File
#!/snap/bin/powershell
|
|
|
|
# Syntax: ./clone-repos.ps1
|
|
# Description: clones well-known Git repositories into the current directory.
|
|
# Author: Markus Fleschutz
|
|
# Source: github.com/fleschutz/PowerShell
|
|
# License: CC0
|
|
|
|
$Repos = "https://github.com/commonmark/cmark", "https://github.com/opencv/opencv", "https://github.com/openzfs/zfs", "https://github.com/synesthesiam/voice2json", "https://github.com/fleschutz/CWTS", "https://github.com/fleschutz/cubesum", "https://github.com/fleschutz/PowerShell","https://github.com/fleschutz/CWTS", "https://github.com/fleschutz/eventdriven"
|
|
|
|
foreach ($Repo in $Repos) {
|
|
$Answer = read-host "Do you want to clone $Repo (y/n)"
|
|
if ($Answer -eq "y") {
|
|
git clone $Repo
|
|
}
|
|
}
|
|
|
|
write-host "Done."
|
|
exit 0
|