mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 21:07:40 +02:00
Improved the scripts
This commit is contained in:
@ -1,11 +1,13 @@
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./clone-repos.ps1
|
||||
.DESCRIPTION clones well-known Git repositories into the current directory.
|
||||
.SYNTAX ./clone-repos.ps1 [<target-dir>]
|
||||
.DESCRIPTION clones well-known Git repositories into the current/given directory.
|
||||
.LINK https://github.com/fleschutz/PowerShell
|
||||
.NOTES Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param($TargetDir = "$PWD")
|
||||
|
||||
try {
|
||||
& git --version
|
||||
} catch {
|
||||
@ -17,6 +19,7 @@ try {
|
||||
$PathToRepo = "$PSScriptRoot/.."
|
||||
$Table = import-csv "$PathToRepo/Data/repos.csv"
|
||||
|
||||
set-location $TargetDir
|
||||
foreach($Row in $Table) {
|
||||
$URL = $Row.URL
|
||||
$Directory = $Row.Directory
|
||||
|
Reference in New Issue
Block a user