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

View File

@ -7,6 +7,7 @@ List of Scripts
---------------
The following PowerShell scripts can be found in the `Scripts/` subfolder:
* [clone-repos.ps1](Scripts/clone-repos.ps1) - clones well-known Git repositories
* [download.ps1](Scripts/download.ps1) - downloads the file/directory from the given URL
* [empty-dir.ps1](Scripts/empty-dir.ps1) - empties the given directory
* [exe_info.ps1](Scripts/exe_info.ps1) - prints basic information of the given executable file

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