Skip to content

Commit 4c2cc60

Browse files
committed
Add comment to exit 0
1 parent a5ae44d commit 4c2cc60

257 files changed

Lines changed: 509 additions & 509 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.

Scripts/add-firewall-rules.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<#
1+
<#
22
.SYNOPSIS
33
add-firewall-rules.ps1 [<path-to-executables>]
44
.DESCRIPTION
@@ -52,7 +52,7 @@ try {
5252

5353
$arg = "PathToExecutables $Apps"
5454
Start-Process powershell -Verb runAs -ArgumentList "-command & {$command} $arg"
55-
exit 0
55+
exit 0 # success
5656
} catch {
5757
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
5858
exit 1

Scripts/add-memo.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<#
1+
<#
22
.SYNOPSIS
33
add-memo.ps1 [<text>]
44
.DESCRIPTION
@@ -27,7 +27,7 @@ try {
2727
write-output $Line >> "$Path"
2828

2929
"✔️ added to 📄$Path"
30-
exit 0
30+
exit 0 # success
3131
} catch {
3232
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
3333
exit 1

Scripts/alert.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<#
1+
<#
22
.SYNOPSIS
33
alert.ps1 [<message>]
44
.DESCRIPTION
@@ -20,7 +20,7 @@ try {
2020

2121
curl --header "Access-Token: o.PZl5XCp6SBl4F5PpaNXGDfFpUJZKAlEb" --header "Content-Type: application/json" --data-binary '{"type": "note", "title": "ALERT", "body": "$Message"}' --request POST https://api.pushbullet.com/v2/pushes
2222

23-
exit 0
23+
exit 0 # success
2424
} catch {
2525
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
2626
exit 1

Scripts/cd-desktop.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<#
1+
<#
22
.SYNOPSIS
33
cd-desktop.ps1
44
.DESCRIPTION
@@ -18,4 +18,4 @@ if (-not(test-path "$TargetDir" -pathType container)) {
1818
}
1919
set-location "$TargetDir"
2020
"📂$TargetDir"
21-
exit 0
21+
exit 0 # success

Scripts/cd-docs.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<#
1+
<#
22
.SYNOPSIS
33
cd-docs.ps1
44
.DESCRIPTION
@@ -18,4 +18,4 @@ if (-not(test-path "$TargetDir" -pathType container)) {
1818
}
1919
set-location "$TargetDir"
2020
"📂$TargetDir"
21-
exit 0
21+
exit 0 # success

Scripts/cd-downloads.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<#
1+
<#
22
.SYNOPSIS
33
cd-downloads.ps1
44
.DESCRIPTION
@@ -18,4 +18,4 @@ if (-not(test-path "$TargetDir" -pathType container)) {
1818
}
1919
set-location "$TargetDir"
2020
"📂$TargetDir"
21-
exit 0
21+
exit 0 # success

Scripts/cd-dropbox.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<#
1+
<#
22
.SYNOPSIS
33
cd-dropbox.ps1
44
.DESCRIPTION
@@ -18,4 +18,4 @@ if (-not(test-path "$TargetDir" -pathType container)) {
1818
}
1919
set-location "$TargetDir"
2020
"📂$TargetDir"
21-
exit 0
21+
exit 0 # success

Scripts/cd-home.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<#
1+
<#
22
.SYNOPSIS
33
cd-home.ps1
44
.DESCRIPTION
@@ -18,4 +18,4 @@ if (-not(test-path "$TargetDir" -pathType container)) {
1818
}
1919
set-location "$TargetDir"
2020
"📂$TargetDir"
21-
exit 0
21+
exit 0 # success

Scripts/cd-music.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<#
1+
<#
22
.SYNOPSIS
33
cd-music.ps1
44
.DESCRIPTION
@@ -18,4 +18,4 @@ if (-not(test-path "$TargetDir" -pathType container)) {
1818
}
1919
set-location "$TargetDir"
2020
"📂$TargetDir"
21-
exit 0
21+
exit 0 # success

Scripts/cd-onedrive.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<#
1+
<#
22
.SYNOPSIS
33
cd-onedrive.ps1
44
.DESCRIPTION
@@ -18,4 +18,4 @@ if (-not(test-path "$TargetDir" -pathType container)) {
1818
}
1919
set-location "$TargetDir"
2020
"📂$TargetDir"
21-
exit 0
21+
exit 0 # success

0 commit comments

Comments
 (0)