Changed to lowercase

This commit is contained in:
Markus Fleschutz 2020-12-29 14:48:24 +00:00
parent 9618b25d80
commit ea1b2554c0
10 changed files with 10 additions and 9 deletions

View File

Can't render this file because it is too large.

View File

Can't render this file because it has a wrong number of fields in line 2.

View File

@ -1,15 +1,15 @@
#!/snap/bin/powershell
<#
.SYNTAX ./list-logbook.ps1
.DESCRIPTION lists the content of the logbook (../Data/Logbook.csv)
.DESCRIPTION lists the content of the logbook (in ../Data/logbook.csv)
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
#>
try {
write-progress "Reading Data/logbook.csv..."
$PathToRepo=(get-item $MyInvocation.MyCommand.Path).directory.parent
$Table = import-csv "$PathToRepo/Data/Logbook.csv"
$Table = import-csv "$PathToRepo/Data/logbook.csv"
write-output ""
write-output "Time User Text"

View File

@ -7,7 +7,7 @@
#>
try {
write-progress "Reading scripts.csv..."
write-progress "Reading Data/scripts.csv..."
$PathToRepo = (get-item $MyInvocation.MyCommand.Path).directory.parent
$Table = import-csv "$PathToRepo/Data/scripts.csv"

View File

@ -7,9 +7,9 @@
#>
try {
write-progress "Reading Matrix.csv..."
write-progress "Reading Data/matrix.csv..."
$PathToRepo=(get-item $MyInvocation.MyCommand.Path).directory.parent
$Table = import-csv "$PathToRepo/Data/Matrix.csv"
$Table = import-csv "$PathToRepo/Data/matrix.csv"
clear-host
foreach($Row in $Table) {

View File

@ -11,8 +11,9 @@ Set-StrictMode -Version Latest
try {
$StartTime = Get-Date
write-progress "Reading Data/domain-names.csv..."
$PathToRepo=(get-item $MyInvocation.MyCommand.Path).directory.parent
$Table = import-csv "$PathToRepo/Data/domain_table.csv"
$Table = import-csv "$PathToRepo/Data/domain-names.csv"
foreach($Row in $Table) {
$Domain = $Row.Domain

View File

@ -1,7 +1,7 @@
#!/snap/bin/powershell
<#
.SYNTAX ./write-logbook.ps1 [<text>]
.DESCRIPTION writes the given text to the logbook (../Data/Logbook.csv)
.DESCRIPTION writes the given text to the logbook (in ../Data/logbook.csv)
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
#>
@ -17,7 +17,7 @@ try {
$Line = "$Time,$User,$Text"
$PathToRepo=(get-item $MyInvocation.MyCommand.Path).directory.parent
write-output $Line >> "$PathToRepo/Data/Logbook.csv"
write-output $Line >> "$PathToRepo/Data/logbook.csv"
exit 0
} catch {
write-error "ERROR in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"