mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 21:07:40 +02:00
Improved the error message
This commit is contained in:
@ -8,12 +8,17 @@
|
||||
|
||||
$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
|
||||
try {
|
||||
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
|
||||
write-host "Done."
|
||||
exit 0
|
||||
} catch {
|
||||
Write-Error "ERROR in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
||||
|
Reference in New Issue
Block a user