mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-22 20:51:17 +01:00
Added clone-repos.ps1
This commit is contained in:
parent
3939fc7905
commit
f071a14129
@ -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
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
|
Loading…
Reference in New Issue
Block a user