Skip to content

Commit 450869a

Browse files
committed
Remove the #!/usr/bin/pwsh line
1 parent 7ab2795 commit 450869a

184 files changed

Lines changed: 108 additions & 344 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Misc/FAQ.md

Lines changed: 7 additions & 8 deletions

README.md

Lines changed: 1 addition & 1 deletion

Scripts/MD5.ps1

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/pwsh
21
<#
32
.SYNTAX MD5.ps1 [<file>]
43
.DESCRIPTION prints the MD5 checksum of the given file
@@ -7,14 +6,11 @@
76
#>
87

98
param($File = "")
10-
11-
if ($File -eq "" ) {
12-
$File = read-host "Enter path to file"
13-
}
9+
if ($File -eq "" ) { $File = read-host "Enter path to file" }
1410

1511
try {
1612
$Result = get-filehash $File -algorithm MD5
17-
write-output "MD5 hash is" $Result.Hash
13+
"MD5 hash is" $Result.Hash
1814
exit 0
1915
} catch {
2016
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

Scripts/SHA1.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/pwsh
21
<#
32
.SYNTAX SHA1.ps1 [<file>]
43
.DESCRIPTION prints the SHA1 checksum of the given file

Scripts/SHA256.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/pwsh
21
<#
32
.SYNTAX SHA256.ps1 [<file>]
43
.DESCRIPTION prints the SHA256 checksum of the given file

Scripts/add-firewall-rules.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/pwsh
21
<#
32
.SYNTAX add-firewall-rules.ps1 [<path-to-executables>]
43
.DESCRIPTION adds firewall rules for the given executables, administrator rights are required

Scripts/alert.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/pwsh
21
<#
32
.SYNTAX alert.ps1 [<message>]
43
.DESCRIPTION handle and escalate the given alert message

Scripts/build-repo.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#!/usr/bin/pwsh
2-
<#
1+
<#
32
.SYNTAX build-repo.ps1 [<repo-dir>]
43
.DESCRIPTION builds a Git repository (supporting cmake,configure,autogen,Imakefile,Makefile)
54
.LINK https://github.com/fleschutz/PowerShell

Scripts/build-repos.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#!/usr/bin/pwsh
2-
<#
1+
<#
32
.SYNTAX build-repos.ps1 [<parent-dir>]
43
.DESCRIPTION builds all Git repositories under the current/given directory
54
.LINK https://github.com/fleschutz/PowerShell

Scripts/cd-docs.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#!/usr/bin/pwsh
2-
<#
1+
<#
32
.SYNTAX cd-docs.ps1
43
.DESCRIPTION go to the user's documents folder
54
.LINK https://github.com/fleschutz/PowerShell

0 commit comments

Comments
 (0)