From 4c2cc6033d504e51d2adc04721b32af1e9eca0ae Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Mon, 27 Sep 2021 10:09:45 +0200 Subject: [PATCH] Add comment to exit 0 --- Scripts/add-firewall-rules.ps1 | 4 ++-- Scripts/add-memo.ps1 | 4 ++-- Scripts/alert.ps1 | 4 ++-- Scripts/cd-desktop.ps1 | 4 ++-- Scripts/cd-docs.ps1 | 4 ++-- Scripts/cd-downloads.ps1 | 4 ++-- Scripts/cd-dropbox.ps1 | 4 ++-- Scripts/cd-home.ps1 | 4 ++-- Scripts/cd-music.ps1 | 4 ++-- Scripts/cd-onedrive.ps1 | 4 ++-- Scripts/cd-pics.ps1 | 4 ++-- Scripts/cd-recycle-bin.ps1 | 4 ++-- Scripts/cd-repos.ps1 | 4 ++-- Scripts/cd-root.ps1 | 4 ++-- Scripts/cd-scripts.ps1 | 4 ++-- Scripts/cd-ssh.ps1 | 4 ++-- Scripts/cd-up.ps1 | 4 ++-- Scripts/cd-up2.ps1 | 4 ++-- Scripts/cd-up3.ps1 | 4 ++-- Scripts/cd-up4.ps1 | 4 ++-- Scripts/cd-videos.ps1 | 4 ++-- Scripts/check-cpu-temp.ps1 | 4 ++-- Scripts/check-dns-resolution.ps1 | 4 ++-- Scripts/check-drive-space.ps1 | 4 ++-- Scripts/check-file-system.ps1 | 4 ++-- Scripts/check-health.ps1 | 4 ++-- Scripts/check-ipv4-address.ps1 | 4 ++-- Scripts/check-ipv6-address.ps1 | 4 ++-- Scripts/check-mac-address.ps1 | 4 ++-- Scripts/check-ping.ps1 | 4 ++-- Scripts/check-subnet-mask.ps1 | 4 ++-- Scripts/check-swap-space.ps1 | 4 ++-- Scripts/check-symlinks.ps1 | 2 +- Scripts/check-weather.ps1 | 4 ++-- Scripts/check-windows-system-files.ps1 | 4 ++-- Scripts/check-xml-file.ps1 | 4 ++-- Scripts/cherry-picker.ps1 | 4 ++-- Scripts/clean-repo.ps1 | 4 ++-- Scripts/clean-repos.ps1 | 4 ++-- Scripts/clear-recycle-bin.ps1 | 4 ++-- Scripts/clone-repos.ps1 | 4 ++-- Scripts/close-calculator.ps1 | 4 ++-- Scripts/close-chrome.ps1 | 4 ++-- Scripts/close-cortana.ps1 | 4 ++-- Scripts/close-edge.ps1 | 4 ++-- Scripts/close-file-explorer.ps1 | 4 ++-- Scripts/close-firefox.ps1 | 4 ++-- Scripts/close-netflix.ps1 | 4 ++-- Scripts/close-onedrive.ps1 | 4 ++-- Scripts/close-program.ps1 | 4 ++-- Scripts/close-system-settings.ps1 | 4 ++-- Scripts/close-thunderbird.ps1 | 4 ++-- Scripts/close-vlc.ps1 | 4 ++-- Scripts/close-windows-terminal.ps1 | 4 ++-- Scripts/configure-git.ps1 | 4 ++-- Scripts/convert-csv2txt.ps1 | 4 ++-- Scripts/convert-mysql2csv.ps1 | 4 ++-- Scripts/convert-ps2bat.ps1 | 4 ++-- Scripts/convert-sql2csv.ps1 | 4 ++-- Scripts/convert-txt2wav.ps1 | 4 ++-- Scripts/copy-photos-sorted.ps1 | 4 ++-- Scripts/decrypt-file.ps1 | 4 ++-- Scripts/display-time.ps1 | 4 ++-- Scripts/download-dir.ps1 | 4 ++-- Scripts/download-file.ps1 | 4 ++-- Scripts/edit.ps1 | 4 ++-- Scripts/enable-crash-dumps.ps1 | 4 ++-- Scripts/enable-god-mode.ps1 | 4 ++-- Scripts/encrypt-file.ps1 | 4 ++-- Scripts/enter-chat.ps1 | 2 +- Scripts/fetch-repo.ps1 | 4 ++-- Scripts/fetch-repos.ps1 | 4 ++-- Scripts/get-md5.ps1 | 4 ++-- Scripts/get-sha1.ps1 | 4 ++-- Scripts/get-sha256.ps1 | 4 ++-- Scripts/hibernate.ps1 | 4 ++-- Scripts/inspect-exe.ps1 | 4 ++-- Scripts/install-github-cli.ps1 | 4 ++-- Scripts/install-google-chrome.ps1 | 4 ++-- Scripts/install-knot-resolver.ps1 | 4 ++-- Scripts/install-signal-cli.ps1 | 4 ++-- Scripts/install-ssh-client.ps1 | 4 ++-- Scripts/install-ssh-server.ps1 | 4 ++-- Scripts/install-updates.ps1 | 4 ++-- Scripts/install-wsl.ps1 | 4 ++-- Scripts/introduce-powershell.ps1 | 4 ++-- Scripts/list-aliases.ps1 | 4 ++-- Scripts/list-anagrams.ps1 | 4 ++-- Scripts/list-automatic-variables.ps1 | 4 ++-- Scripts/list-branches.ps1 | 4 ++-- Scripts/list-cheat-sheet.ps1 | 4 ++-- Scripts/list-city-weather.ps1 | 4 ++-- Scripts/list-cli-tools.ps1 | 4 ++-- Scripts/list-clipboard.ps1 | 4 ++-- Scripts/list-cmdlets.ps1 | 4 ++-- Scripts/list-commits.ps1 | 4 ++-- Scripts/list-console-colors.ps1 | 4 ++-- Scripts/list-countries.ps1 | 4 ++-- Scripts/list-credits.ps1 | 4 ++-- Scripts/list-crypto-rates.ps1 | 4 ++-- Scripts/list-dir-tree.ps1 | 4 ++-- Scripts/list-dir.ps1 | 4 ++-- Scripts/list-drives.ps1 | 4 ++-- Scripts/list-earthquakes.ps1 | 4 ++-- Scripts/list-emojis.ps1 | 4 ++-- Scripts/list-empty-dirs.ps1 | 4 ++-- Scripts/list-empty-files.ps1 | 4 ++-- Scripts/list-environment-variables.ps1 | 4 ++-- Scripts/list-exchange-rates.ps1 | 4 ++-- Scripts/list-files.ps1 | 4 ++-- Scripts/list-fritzbox-calls.ps1 | 4 ++-- Scripts/list-fritzbox-devices.ps1 | 4 ++-- Scripts/list-hidden-files.ps1 | 4 ++-- Scripts/list-installed-apps.ps1 | 4 ++-- Scripts/list-installed-software.ps1 | 4 ++-- Scripts/list-latest-tag.ps1 | 4 ++-- Scripts/list-latest-tags.ps1 | 4 ++-- Scripts/list-memos.ps1 | 4 ++-- Scripts/list-modules.ps1 | 4 ++-- Scripts/list-mysql-tables.ps1 | 2 +- Scripts/list-network-shares.ps1 | 4 ++-- Scripts/list-news.ps1 | 4 ++-- Scripts/list-os-releases.ps1 | 4 ++-- Scripts/list-os-updates.ps1 | 4 ++-- Scripts/list-passwords.ps1 | 4 ++-- Scripts/list-pins.ps1 | 4 ++-- Scripts/list-print-jobs.ps1 | 4 ++-- Scripts/list-printers.ps1 | 4 ++-- Scripts/list-processes.ps1 | 4 ++-- Scripts/list-profiles.ps1 | 4 ++-- Scripts/list-recycle-bin.ps1 | 4 ++-- Scripts/list-scripts.ps1 | 4 ++-- Scripts/list-services.ps1 | 4 ++-- Scripts/list-sql-tables.ps1 | 2 +- Scripts/list-submodules.ps1 | 4 ++-- Scripts/list-system-info.ps1 | 4 ++-- Scripts/list-tags.ps1 | 4 ++-- Scripts/list-tasks.ps1 | 4 ++-- Scripts/list-timezone.ps1 | 4 ++-- Scripts/list-timezones.ps1 | 4 ++-- Scripts/list-tiobe-index.ps1 | 4 ++-- Scripts/list-unused-files.ps1 | 4 ++-- Scripts/list-user-groups.ps1 | 4 ++-- Scripts/list-voices.ps1 | 4 ++-- Scripts/list-weather.ps1 | 4 ++-- Scripts/list-workdir.ps1 | 4 ++-- Scripts/locate-city.ps1 | 4 ++-- Scripts/locate-ipaddress.ps1 | 4 ++-- Scripts/locate-zip-code.ps1 | 4 ++-- Scripts/make-install.ps1 | 4 ++-- Scripts/make-repo.ps1 | 6 +++--- Scripts/make-repos.ps1 | 4 ++-- Scripts/moon.ps1 | 4 ++-- Scripts/mute-audio.ps1 | 4 ++-- Scripts/my-profile.ps1 | 2 +- Scripts/new-branch.ps1 | 4 ++-- Scripts/new-email.ps1 | 4 ++-- Scripts/new-qrcode.ps1 | 4 ++-- Scripts/new-script.ps1 | 4 ++-- Scripts/new-shortcut.ps1 | 4 ++-- Scripts/new-symlink.ps1 | 4 ++-- Scripts/new-tag.ps1 | 4 ++-- Scripts/new-zipfile.ps1 | 4 ++-- Scripts/open-browser.ps1 | 4 ++-- Scripts/open-calculator.ps1 | 4 ++-- Scripts/open-email-client.ps1 | 4 ++-- Scripts/open-file-explorer.ps1 | 4 ++-- Scripts/open-netflix.ps1 | 4 ++-- Scripts/open-onedrive.ps1 | 4 ++-- Scripts/open-recycle-bin.ps1 | 4 ++-- Scripts/play-beep.ps1 | 4 ++-- Scripts/play-files.ps1 | 4 ++-- Scripts/play-happy-birthday.ps1 | 4 ++-- Scripts/play-imperial-march.ps1 | 4 ++-- Scripts/play-jingle-bells.ps1 | 4 ++-- Scripts/play-m3u.ps1 | 4 ++-- Scripts/play-mission-impossible.ps1 | 4 ++-- Scripts/play-mp3.ps1 | 4 ++-- Scripts/play-super-mario.ps1 | 4 ++-- Scripts/play-tetris-melody.ps1 | 4 ++-- Scripts/poweroff.ps1 | 4 ++-- Scripts/publish-to-ipfs.ps1 | 4 ++-- Scripts/pull-repo.ps1 | 6 +++--- Scripts/pull-repos.ps1 | 4 ++-- Scripts/query-smart-data.ps1 | 4 ++-- Scripts/reboot-fritzbox.ps1 | 4 ++-- Scripts/reboot.ps1 | 4 ++-- Scripts/remove-empty-dirs.ps1 | 4 ++-- Scripts/remove-print-jobs.ps1 | 4 ++-- Scripts/remove-tag.ps1 | 4 ++-- Scripts/replace-in-files.ps1 | 4 ++-- Scripts/restart-network-adapters.ps1 | 4 ++-- Scripts/scan-ports.ps1 | 4 ++-- Scripts/search-filename.ps1 | 4 ++-- Scripts/search-files.ps1 | 4 ++-- Scripts/send-email.ps1 | 4 ++-- Scripts/send-tcp.ps1 | 4 ++-- Scripts/send-udp.ps1 | 4 ++-- Scripts/set-profile.ps1 | 4 ++-- Scripts/set-timer.ps1 | 4 ++-- Scripts/set-wallpaper.ps1 | 4 ++-- Scripts/simulate-matrix.ps1 | 4 ++-- Scripts/simulate-presence.ps1 | 4 ++-- Scripts/smart-data2csv.ps1 | 4 ++-- Scripts/speak-checklist.ps1 | 4 ++-- Scripts/speak-countdown.ps1 | 4 ++-- Scripts/speak-date.ps1 | 4 ++-- Scripts/speak-english.ps1 | 4 ++-- Scripts/speak-epub.ps1 | 2 +- Scripts/speak-file.ps1 | 4 ++-- Scripts/speak-french.ps1 | 4 ++-- Scripts/speak-german.ps1 | 4 ++-- Scripts/speak-italian.ps1 | 4 ++-- Scripts/speak-joke.ps1 | 4 ++-- Scripts/speak-quote.ps1 | 4 ++-- Scripts/speak-spanish.ps1 | 4 ++-- Scripts/speak-test.ps1 | 4 ++-- Scripts/speak-text.ps1 | 4 ++-- Scripts/speak-time.ps1 | 4 ++-- Scripts/start-calibre-server.ps1 | 4 ++-- Scripts/start-ipfs-server.ps1 | 4 ++-- Scripts/switch-branch.ps1 | 4 ++-- Scripts/switch-shelly1.ps1 | 4 ++-- Scripts/sync-repo.ps1 | 4 ++-- Scripts/take-screenshot.ps1 | 4 ++-- Scripts/take-screenshots.ps1 | 4 ++-- Scripts/translate-file.ps1 | 4 ++-- Scripts/translate-files.ps1 | 4 ++-- Scripts/translate-text.ps1 | 4 ++-- Scripts/turn-volume-down.ps1 | 4 ++-- Scripts/turn-volume-up.ps1 | 4 ++-- Scripts/unmute-audio.ps1 | 4 ++-- Scripts/upgrade-ubuntu.ps1 | 4 ++-- Scripts/upload-file.ps1 | 4 ++-- Scripts/voice-control.ps1 | 4 ++-- Scripts/wakeup.ps1 | 4 ++-- Scripts/weather-report.ps1 | 4 ++-- Scripts/weather.ps1 | 4 ++-- Scripts/what-is.ps1 | 4 ++-- Scripts/write-animated.ps1 | 4 ++-- Scripts/write-big.ps1 | 4 ++-- Scripts/write-blue.ps1 | 4 ++-- Scripts/write-braille.ps1 | 4 ++-- Scripts/write-calendar.ps1 | 2 +- Scripts/write-chart.ps1 | 4 ++-- Scripts/write-green.ps1 | 4 ++-- Scripts/write-joke.ps1 | 4 ++-- Scripts/write-lowercase.ps1 | 4 ++-- Scripts/write-marquee.ps1 | 4 ++-- Scripts/write-morse-code.ps1 | 4 ++-- Scripts/write-motd.ps1 | 4 ++-- Scripts/write-quote.ps1 | 4 ++-- Scripts/write-red.ps1 | 4 ++-- Scripts/write-rot13.ps1 | 4 ++-- Scripts/write-typewriter.ps1 | 4 ++-- Scripts/write-uppercase.ps1 | 4 ++-- Scripts/write-vertical.ps1 | 4 ++-- 257 files changed, 509 insertions(+), 509 deletions(-) diff --git a/Scripts/add-firewall-rules.ps1 b/Scripts/add-firewall-rules.ps1 index f6ebd091..107416a4 100755 --- a/Scripts/add-firewall-rules.ps1 +++ b/Scripts/add-firewall-rules.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS add-firewall-rules.ps1 [] .DESCRIPTION @@ -52,7 +52,7 @@ try { $arg = "PathToExecutables $Apps" Start-Process powershell -Verb runAs -ArgumentList "-command & {$command} $arg" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/add-memo.ps1 b/Scripts/add-memo.ps1 index 12ea9bfe..0103fcae 100755 --- a/Scripts/add-memo.ps1 +++ b/Scripts/add-memo.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS add-memo.ps1 [] .DESCRIPTION @@ -27,7 +27,7 @@ try { write-output $Line >> "$Path" "✔️ added to 📄$Path" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/alert.ps1 b/Scripts/alert.ps1 index 96dd33ec..107cd351 100755 --- a/Scripts/alert.ps1 +++ b/Scripts/alert.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS alert.ps1 [] .DESCRIPTION @@ -20,7 +20,7 @@ try { 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 - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/cd-desktop.ps1 b/Scripts/cd-desktop.ps1 index 65227f80..22fb105a 100755 --- a/Scripts/cd-desktop.ps1 +++ b/Scripts/cd-desktop.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS cd-desktop.ps1 .DESCRIPTION @@ -18,4 +18,4 @@ if (-not(test-path "$TargetDir" -pathType container)) { } set-location "$TargetDir" "📂$TargetDir" -exit 0 +exit 0 # success diff --git a/Scripts/cd-docs.ps1 b/Scripts/cd-docs.ps1 index ba41e343..33a19738 100755 --- a/Scripts/cd-docs.ps1 +++ b/Scripts/cd-docs.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS cd-docs.ps1 .DESCRIPTION @@ -18,4 +18,4 @@ if (-not(test-path "$TargetDir" -pathType container)) { } set-location "$TargetDir" "📂$TargetDir" -exit 0 +exit 0 # success diff --git a/Scripts/cd-downloads.ps1 b/Scripts/cd-downloads.ps1 index da13ec25..3e646dc6 100755 --- a/Scripts/cd-downloads.ps1 +++ b/Scripts/cd-downloads.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS cd-downloads.ps1 .DESCRIPTION @@ -18,4 +18,4 @@ if (-not(test-path "$TargetDir" -pathType container)) { } set-location "$TargetDir" "📂$TargetDir" -exit 0 +exit 0 # success diff --git a/Scripts/cd-dropbox.ps1 b/Scripts/cd-dropbox.ps1 index 98ac098d..27f9a819 100755 --- a/Scripts/cd-dropbox.ps1 +++ b/Scripts/cd-dropbox.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS cd-dropbox.ps1 .DESCRIPTION @@ -18,4 +18,4 @@ if (-not(test-path "$TargetDir" -pathType container)) { } set-location "$TargetDir" "📂$TargetDir" -exit 0 +exit 0 # success diff --git a/Scripts/cd-home.ps1 b/Scripts/cd-home.ps1 index 5923807d..56917723 100755 --- a/Scripts/cd-home.ps1 +++ b/Scripts/cd-home.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS cd-home.ps1 .DESCRIPTION @@ -18,4 +18,4 @@ if (-not(test-path "$TargetDir" -pathType container)) { } set-location "$TargetDir" "📂$TargetDir" -exit 0 +exit 0 # success diff --git a/Scripts/cd-music.ps1 b/Scripts/cd-music.ps1 index ca726971..1e5bb076 100755 --- a/Scripts/cd-music.ps1 +++ b/Scripts/cd-music.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS cd-music.ps1 .DESCRIPTION @@ -18,4 +18,4 @@ if (-not(test-path "$TargetDir" -pathType container)) { } set-location "$TargetDir" "📂$TargetDir" -exit 0 +exit 0 # success diff --git a/Scripts/cd-onedrive.ps1 b/Scripts/cd-onedrive.ps1 index b050fb23..b64f8592 100644 --- a/Scripts/cd-onedrive.ps1 +++ b/Scripts/cd-onedrive.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS cd-onedrive.ps1 .DESCRIPTION @@ -18,4 +18,4 @@ if (-not(test-path "$TargetDir" -pathType container)) { } set-location "$TargetDir" "📂$TargetDir" -exit 0 +exit 0 # success diff --git a/Scripts/cd-pics.ps1 b/Scripts/cd-pics.ps1 index 1d4f9fff..98318232 100755 --- a/Scripts/cd-pics.ps1 +++ b/Scripts/cd-pics.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS cd-pics.ps1 .DESCRIPTION @@ -18,4 +18,4 @@ if (-not(test-path "$TargetDir" -pathType container)) { } set-location "$TargetDir" "📂$TargetDir" -exit 0 +exit 0 # success diff --git a/Scripts/cd-recycle-bin.ps1 b/Scripts/cd-recycle-bin.ps1 index 4ee43604..b4fe5c21 100644 --- a/Scripts/cd-recycle-bin.ps1 +++ b/Scripts/cd-recycle-bin.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS cd-recycle-bin.ps1 .DESCRIPTION @@ -24,4 +24,4 @@ if (-not(test-path "$TargetDir" -pathType container)) { } set-location "$TargetDir" "📂$TargetDir" -exit 0 +exit 0 # success diff --git a/Scripts/cd-repos.ps1 b/Scripts/cd-repos.ps1 index 79ff512b..1bb13f7a 100644 --- a/Scripts/cd-repos.ps1 +++ b/Scripts/cd-repos.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS cd-repos.ps1 .DESCRIPTION @@ -18,4 +18,4 @@ if (-not(test-path "$TargetDir" -pathType container)) { } set-location "$TargetDir" "📂$TargetDir" -exit 0 +exit 0 # success diff --git a/Scripts/cd-root.ps1 b/Scripts/cd-root.ps1 index da3ba73b..a4dd5817 100755 --- a/Scripts/cd-root.ps1 +++ b/Scripts/cd-root.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS cd-root.ps1 .DESCRIPTION @@ -22,4 +22,4 @@ if (-not(test-path "$TargetDir" -pathType container)) { } set-location "$TargetDir" "📂$TargetDir" -exit 0 +exit 0 # success diff --git a/Scripts/cd-scripts.ps1 b/Scripts/cd-scripts.ps1 index 5ea26aab..5e6907de 100755 --- a/Scripts/cd-scripts.ps1 +++ b/Scripts/cd-scripts.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS cd-scripts.ps1 .DESCRIPTION @@ -18,4 +18,4 @@ if (-not(test-path "$TargetDir" -pathType container)) { } set-location "$TargetDir" "📂$TargetDir" -exit 0 +exit 0 # success diff --git a/Scripts/cd-ssh.ps1 b/Scripts/cd-ssh.ps1 index 51875766..20ffdb62 100755 --- a/Scripts/cd-ssh.ps1 +++ b/Scripts/cd-ssh.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS cd-ssh.ps1 .DESCRIPTION @@ -18,4 +18,4 @@ if (-not(test-path "$TargetDir" -pathType container)) { } set-location "$TargetDir" "📂$TargetDir" -exit 0 +exit 0 # success diff --git a/Scripts/cd-up.ps1 b/Scripts/cd-up.ps1 index 091ebe41..6577964e 100755 --- a/Scripts/cd-up.ps1 +++ b/Scripts/cd-up.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS cd-up.ps1 .DESCRIPTION @@ -18,4 +18,4 @@ if (-not(test-path "$TargetDir" -pathType container)) { } set-location "$TargetDir" "📂$TargetDir" -exit 0 +exit 0 # success diff --git a/Scripts/cd-up2.ps1 b/Scripts/cd-up2.ps1 index 229d8c09..77eb8c4c 100644 --- a/Scripts/cd-up2.ps1 +++ b/Scripts/cd-up2.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS cd-up2.ps1 .DESCRIPTION @@ -18,4 +18,4 @@ if (-not(test-path "$TargetDir" -pathType container)) { } set-location "$TargetDir" "📂$TargetDir" -exit 0 +exit 0 # success diff --git a/Scripts/cd-up3.ps1 b/Scripts/cd-up3.ps1 index a49b9c0c..3b127f6e 100644 --- a/Scripts/cd-up3.ps1 +++ b/Scripts/cd-up3.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS cd-up3.ps1 .DESCRIPTION @@ -18,4 +18,4 @@ if (-not(test-path "$TargetDir" -pathType container)) { } set-location "$TargetDir" "📂$TargetDir" -exit 0 +exit 0 # success diff --git a/Scripts/cd-up4.ps1 b/Scripts/cd-up4.ps1 index adf063ab..f85958d2 100644 --- a/Scripts/cd-up4.ps1 +++ b/Scripts/cd-up4.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS cd-up4.ps1 .DESCRIPTION @@ -18,4 +18,4 @@ if (-not(test-path "$TargetDir" -pathType container)) { } set-location "$TargetDir" "📂$TargetDir" -exit 0 +exit 0 # success diff --git a/Scripts/cd-videos.ps1 b/Scripts/cd-videos.ps1 index 67685332..0d66bc2a 100755 --- a/Scripts/cd-videos.ps1 +++ b/Scripts/cd-videos.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS cd-videos.ps1 .DESCRIPTION @@ -18,4 +18,4 @@ if (-not(test-path "$TargetDir" -pathType container)) { } set-location "$TargetDir" "📂$TargetDir" -exit 0 +exit 0 # success diff --git a/Scripts/check-cpu-temp.ps1 b/Scripts/check-cpu-temp.ps1 index 11a51ed6..a360f61a 100755 --- a/Scripts/check-cpu-temp.ps1 +++ b/Scripts/check-cpu-temp.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS check-cpu-temp.ps1 .DESCRIPTION @@ -34,7 +34,7 @@ try { } else { "✔️ $Temp °C CPU temperature - good" } - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/check-dns-resolution.ps1 b/Scripts/check-dns-resolution.ps1 index 894b0531..68d475ac 100755 --- a/Scripts/check-dns-resolution.ps1 +++ b/Scripts/check-dns-resolution.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS check-dns-resolution.ps1 .DESCRIPTION @@ -31,7 +31,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds $Average = [math]::round($Count / $Elapsed, 1) "✔️ $Average domains/s ($Count domains resolved in $Elapsed sec)" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/check-drive-space.ps1 b/Scripts/check-drive-space.ps1 index 579494fd..debe1510 100755 --- a/Scripts/check-drive-space.ps1 +++ b/Scripts/check-drive-space.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS check-drive-space.ps1 [] [] .DESCRIPTION @@ -26,7 +26,7 @@ try { exit 1 } "✔️ $Free GB left on drive $Drive ($Used of $Total GB used)" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/check-file-system.ps1 b/Scripts/check-file-system.ps1 index 8a3d3d22..acf605e7 100755 --- a/Scripts/check-file-system.ps1 +++ b/Scripts/check-file-system.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS check-file-system.ps1 [] .DESCRIPTION @@ -22,7 +22,7 @@ try { if ($Result -ne "NoErrorsFound") { throw "'repair-volume' failed" } "✔️ file system on drive $Drive is clean" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/check-health.ps1 b/Scripts/check-health.ps1 index 04f48f31..ebc7ab77 100755 --- a/Scripts/check-health.ps1 +++ b/Scripts/check-health.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS check-health.ps1 .DESCRIPTION @@ -38,7 +38,7 @@ if ($lastExitCode -ne "0") { $Healthy = 0 } if ($Healthy) { "✔️ $Hostname is healthy" - exit 0 + exit 0 # success } else { write-warning "$Hostname is NOT healthy" exit 1 diff --git a/Scripts/check-ipv4-address.ps1 b/Scripts/check-ipv4-address.ps1 index bf755749..eb715c6d 100755 --- a/Scripts/check-ipv4-address.ps1 +++ b/Scripts/check-ipv4-address.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS check-ipv4-address.ps1 [
] .DESCRIPTION @@ -27,7 +27,7 @@ try { if (IsIPv4AddressValid $Address) { "✔️ IPv4 address $Address is valid" - exit 0 + exit 0 # success } else { write-warning "Invalid IPv4 address: $Address" exit 1 diff --git a/Scripts/check-ipv6-address.ps1 b/Scripts/check-ipv6-address.ps1 index 0988eddf..0142a024 100755 --- a/Scripts/check-ipv6-address.ps1 +++ b/Scripts/check-ipv6-address.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS check-ipv6-address.ps1 [
] .DESCRIPTION @@ -41,7 +41,7 @@ try { } if (IsIPv6AddressValid $Address) { "✔️ IPv6 address $Address is valid" - exit 0 + exit 0 # success } else { write-warning "Invalid IPv6 address: $Address" exit 1 diff --git a/Scripts/check-mac-address.ps1 b/Scripts/check-mac-address.ps1 index a09191b7..6a10a729 100755 --- a/Scripts/check-mac-address.ps1 +++ b/Scripts/check-mac-address.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS check-mac-address.ps1 [] .DESCRIPTION @@ -28,7 +28,7 @@ try { } if (IsMACAddressValid $MAC) { "✔️ MAC address $MAC is valid" - exit 0 + exit 0 # success } else { write-warning "Invalid MAC address: $MAC" exit 1 diff --git a/Scripts/check-ping.ps1 b/Scripts/check-ping.ps1 index be48cc53..eb669e0f 100755 --- a/Scripts/check-ping.ps1 +++ b/Scripts/check-ping.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS check-ping.ps1 [] .DESCRIPTION @@ -35,7 +35,7 @@ try { $Avg = $Avg / $Pings.count "✔️ $Avg ms net latency average ($Min ms min, $Max ms max, $($Pings.count) hosts)" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/check-subnet-mask.ps1 b/Scripts/check-subnet-mask.ps1 index 89188a0d..9eb79d4b 100755 --- a/Scripts/check-subnet-mask.ps1 +++ b/Scripts/check-subnet-mask.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS check-subnet-mask.ps1 [
] .DESCRIPTION @@ -27,7 +27,7 @@ try { if (IsSubNetMaskValid $address) { "✔️ subnet mask $Address is valid" - exit 0 + exit 0 # success } else { write-warning "Invalid subnet mask: $address" exit 1 diff --git a/Scripts/check-swap-space.ps1 b/Scripts/check-swap-space.ps1 index 56abbbe6..e2a15d78 100755 --- a/Scripts/check-swap-space.ps1 +++ b/Scripts/check-swap-space.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS check-swap-space.ps1 [] .DESCRIPTION @@ -37,7 +37,7 @@ try { exit 1 } "✔️ $Free GB left on swap space ($Used of $Total GB used)" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/check-symlinks.ps1 b/Scripts/check-symlinks.ps1 index b950fc57..5acc9ccd 100755 --- a/Scripts/check-symlinks.ps1 +++ b/Scripts/check-symlinks.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS check-symlinks.ps1 [] .DESCRIPTION diff --git a/Scripts/check-weather.ps1 b/Scripts/check-weather.ps1 index 631f214b..cb2e75f8 100755 --- a/Scripts/check-weather.ps1 +++ b/Scripts/check-weather.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS check-weather.ps1 [] .DESCRIPTION @@ -50,7 +50,7 @@ try { } else { "WEATHER ALERT: $Result" } - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/check-windows-system-files.ps1 b/Scripts/check-windows-system-files.ps1 index ede5d8ac..c08fca7a 100755 --- a/Scripts/check-windows-system-files.ps1 +++ b/Scripts/check-windows-system-files.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS check-windows-system-files.ps1 .DESCRIPTION @@ -18,7 +18,7 @@ try { if ($lastExitCode -ne "0") { throw "'sfc /verifyOnly' failed" } "✔️ checked Windows system files" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/check-xml-file.ps1 b/Scripts/check-xml-file.ps1 index f303c2a9..363f6fcf 100755 --- a/Scripts/check-xml-file.ps1 +++ b/Scripts/check-xml-file.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS check-xml-file [] .DESCRIPTION @@ -35,7 +35,7 @@ try { } "✔️ XML file is valid" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/cherry-picker.ps1 b/Scripts/cherry-picker.ps1 index fb5db2b2..5b58a795 100755 --- a/Scripts/cherry-picker.ps1 +++ b/Scripts/cherry-picker.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS cherry-picker.ps1 [] [] [] [] .DESCRIPTION @@ -66,7 +66,7 @@ try { } [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ cherry picked $CommitID into $NumBranches branches in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/clean-repo.ps1 b/Scripts/clean-repo.ps1 index 6d50c109..bcf7a398 100755 --- a/Scripts/clean-repo.ps1 +++ b/Scripts/clean-repo.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS clean-repo.ps1 [] .DESCRIPTION @@ -32,7 +32,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ cleaned Git repository 📂$RepoDirName in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/clean-repos.ps1 b/Scripts/clean-repos.ps1 index f9e61760..0b25885e 100755 --- a/Scripts/clean-repos.ps1 +++ b/Scripts/clean-repos.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS clean-repos.ps1 [] .DESCRIPTION @@ -42,7 +42,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ cleaned $FolderCount Git repositories at 📂$ParentDirName in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/clear-recycle-bin.ps1 b/Scripts/clear-recycle-bin.ps1 index ef774232..070a338c 100755 --- a/Scripts/clear-recycle-bin.ps1 +++ b/Scripts/clear-recycle-bin.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS clear-recycle-bin.ps1 .DESCRIPTION @@ -17,7 +17,7 @@ try { if ($lastExitCode -ne "0") { throw "'Clear-RecycleBin' failed" } "✔️ cleared recycle bin" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/clone-repos.ps1 b/Scripts/clone-repos.ps1 index 1ffd4296..138642f0 100755 --- a/Scripts/clone-repos.ps1 +++ b/Scripts/clone-repos.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS clone-repos.ps1 [] .DESCRIPTION @@ -48,7 +48,7 @@ try { } [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ cloned $Count Git repositories at 📂$ParentDir in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/close-calculator.ps1 b/Scripts/close-calculator.ps1 index f871922e..8b56f485 100755 --- a/Scripts/close-calculator.ps1 +++ b/Scripts/close-calculator.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS close-calculator.ps1 .DESCRIPTION @@ -12,4 +12,4 @@ #> & "$PSScriptRoot/close-program.ps1" "Calculator" "Calculator" "calc" -exit 0 +exit 0 # success diff --git a/Scripts/close-chrome.ps1 b/Scripts/close-chrome.ps1 index af60905b..93a298d4 100755 --- a/Scripts/close-chrome.ps1 +++ b/Scripts/close-chrome.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS close-chrome.ps1 .DESCRIPTION @@ -12,4 +12,4 @@ #> & "$PSScriptRoot/close-program.ps1" "Google Chrome" "chrome" "chrome" -exit 0 +exit 0 # success diff --git a/Scripts/close-cortana.ps1 b/Scripts/close-cortana.ps1 index 15b8a3b4..9081adad 100755 --- a/Scripts/close-cortana.ps1 +++ b/Scripts/close-cortana.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS close-cortana.ps1 .DESCRIPTION @@ -12,4 +12,4 @@ #> & "$PSScriptRoot/close-program.ps1" "Cortana" "Cortana" "Cortana" -exit 0 +exit 0 # success diff --git a/Scripts/close-edge.ps1 b/Scripts/close-edge.ps1 index 689b056a..6b4ee3c3 100755 --- a/Scripts/close-edge.ps1 +++ b/Scripts/close-edge.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS close-edge.ps1 .DESCRIPTION @@ -12,4 +12,4 @@ #> & "$PSScriptRoot/close-program.ps1" "Microsoft Edge" "msedge" "msedge" -exit 0 +exit 0 # success diff --git a/Scripts/close-file-explorer.ps1 b/Scripts/close-file-explorer.ps1 index 5858f9b7..c2c2711f 100755 --- a/Scripts/close-file-explorer.ps1 +++ b/Scripts/close-file-explorer.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS close-file-explorer.ps1 .DESCRIPTION @@ -12,4 +12,4 @@ #> & "$PSScriptRoot/close-program.ps1" "File Explorer" "explorer" "explorer" -exit 0 +exit 0 # success diff --git a/Scripts/close-firefox.ps1 b/Scripts/close-firefox.ps1 index 0da2d188..e66ff4b6 100755 --- a/Scripts/close-firefox.ps1 +++ b/Scripts/close-firefox.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS close-firefox.ps1 .DESCRIPTION @@ -12,4 +12,4 @@ #> & "$PSScriptRoot/close-program.ps1" "Mozilla Firefox" "firefox" "firefox" -exit 0 +exit 0 # success diff --git a/Scripts/close-netflix.ps1 b/Scripts/close-netflix.ps1 index 00d4fdf7..18ba619b 100755 --- a/Scripts/close-netflix.ps1 +++ b/Scripts/close-netflix.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS close-netflix.ps1 .DESCRIPTION @@ -12,4 +12,4 @@ #> & "$PSScriptRoot/close-program.ps1" "Netflix" "ApplicationFrameHost" "RuntimeBroker" -exit 0 +exit 0 # success diff --git a/Scripts/close-onedrive.ps1 b/Scripts/close-onedrive.ps1 index 976d2ad8..9bd7b9c8 100755 --- a/Scripts/close-onedrive.ps1 +++ b/Scripts/close-onedrive.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS close-onedrive.ps1 .DESCRIPTION @@ -12,4 +12,4 @@ #> & "$PSScriptRoot/close-program.ps1" "Microsoft OneDrive" "onedrive" "onedrive.exe" -exit 0 +exit 0 # success diff --git a/Scripts/close-program.ps1 b/Scripts/close-program.ps1 index 168d6c2a..22ec3690 100755 --- a/Scripts/close-program.ps1 +++ b/Scripts/close-program.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS close-program.ps1 [] [] [] .DESCRIPTION @@ -42,7 +42,7 @@ try { stop-process -name $ProgramName -force -errorAction 'silentlycontinue' } "✔️ closed $FullProgramName, stopped $($Processes.Count) process(es)" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/close-system-settings.ps1 b/Scripts/close-system-settings.ps1 index 4f1890b5..07fa0e15 100755 --- a/Scripts/close-system-settings.ps1 +++ b/Scripts/close-system-settings.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS close-system-settings.ps1 .DESCRIPTION @@ -12,4 +12,4 @@ #> & "$PSScriptRoot/close-program.ps1" "System Settings" "SystemSettings" "SystemSettings" -exit 0 +exit 0 # success diff --git a/Scripts/close-thunderbird.ps1 b/Scripts/close-thunderbird.ps1 index 51114ce0..124400cd 100755 --- a/Scripts/close-thunderbird.ps1 +++ b/Scripts/close-thunderbird.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS close-thunderbird.ps1 .DESCRIPTION @@ -12,4 +12,4 @@ #> & "$PSScriptRoot/close-program.ps1" "Mozilla Thunderbird" "thunderbird" "thunderbird" -exit 0 +exit 0 # success diff --git a/Scripts/close-vlc.ps1 b/Scripts/close-vlc.ps1 index 94fa10cf..a762b207 100755 --- a/Scripts/close-vlc.ps1 +++ b/Scripts/close-vlc.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS close-vlc.ps1 .DESCRIPTION @@ -12,4 +12,4 @@ #> & "$PSScriptRoot/close-program.ps1" "VLC media player" "vlc" "vlc" -exit 0 +exit 0 # success diff --git a/Scripts/close-windows-terminal.ps1 b/Scripts/close-windows-terminal.ps1 index db4f80b0..b94b434d 100755 --- a/Scripts/close-windows-terminal.ps1 +++ b/Scripts/close-windows-terminal.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS close-windows-terminal.ps1 .DESCRIPTION @@ -12,4 +12,4 @@ #> & "$PSScriptRoot/close-program.ps1" "Windows Terminal" "WindowsTerminal" "WindowsTerminal" -exit 0 +exit 0 # success diff --git a/Scripts/configure-git.ps1 b/Scripts/configure-git.ps1 index 0f1379cb..9b2a0e5f 100755 --- a/Scripts/configure-git.ps1 +++ b/Scripts/configure-git.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS configure-git.ps1 [] [] [] .DESCRIPTION @@ -51,7 +51,7 @@ try { "✔️ saved your Git configuration, it's now:" & git config --list if ($lastExitCode -ne "0") { throw "'git config --list' failed" } - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/convert-csv2txt.ps1 b/Scripts/convert-csv2txt.ps1 index 6ad254d0..e40d26fa 100755 --- a/Scripts/convert-csv2txt.ps1 +++ b/Scripts/convert-csv2txt.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS convert-csv2txt.ps1 [] .DESCRIPTION @@ -21,7 +21,7 @@ try { foreach($Row in $Table) { write-output "* $($Row.A) $($Row.B) $($Row.C) $($Row.D) $($Row.E) $($Row.F) $($Row.G) $($Row.H)" } - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/convert-mysql2csv.ps1 b/Scripts/convert-mysql2csv.ps1 index 68e93599..6ccdf760 100755 --- a/Scripts/convert-mysql2csv.ps1 +++ b/Scripts/convert-mysql2csv.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS convert-mysql2csv.ps1 [] [] [] [] [] .DESCRIPTION @@ -24,7 +24,7 @@ try { $csvfilepath = "$PSScriptRoot\mysql_table.csv" $result = Invoke-MySqlQuery -ConnectionString "server=$server; database=$database; user=$username; password=$password; pooling = false; convert zero datetime=True" -Sql $query -CommandTimeout 10000 $result | Export-Csv $csvfilepath -NoTypeInformation - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/convert-ps2bat.ps1 b/Scripts/convert-ps2bat.ps1 index aa8f1c1d..3fca1f1a 100644 --- a/Scripts/convert-ps2bat.ps1 +++ b/Scripts/convert-ps2bat.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS convert-ps2bat.ps1 [] .DESCRIPTION @@ -38,7 +38,7 @@ try { foreach ($File in $Files) { Convert-PowerShellToBatch "$File" } - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/convert-sql2csv.ps1 b/Scripts/convert-sql2csv.ps1 index fd5d310e..80761afb 100755 --- a/Scripts/convert-sql2csv.ps1 +++ b/Scripts/convert-sql2csv.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS convert-sql2csv.ps1 [] [] [] [] [] .DESCRIPTION @@ -25,7 +25,7 @@ try { $csvfilepath = "$PSScriptRoot\sqlserver_table.csv" $result = Invoke-SqlServerQuery -Credential $creds -ConnectionTimeout 10000 -Database $database -Server $server -Sql $query -CommandTimeout 10000 $result | Export-Csv $csvfilepath -NoTypeInformation - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/convert-txt2wav.ps1 b/Scripts/convert-txt2wav.ps1 index 4da72a2f..7d994843 100755 --- a/Scripts/convert-txt2wav.ps1 +++ b/Scripts/convert-txt2wav.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS convert-txt2wav.ps1 [] [] .DESCRIPTION @@ -22,7 +22,7 @@ try { $SpeechSynthesizer.SetOutputToWaveFile($tWavFile) $SpeechSynthesizer.Speak($Text) $SpeechSynthesizer.Dispose() - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/copy-photos-sorted.ps1 b/Scripts/copy-photos-sorted.ps1 index d5102a63..99fbb555 100755 --- a/Scripts/copy-photos-sorted.ps1 +++ b/Scripts/copy-photos-sorted.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS copy-photos-sorted.ps1 [] [] .DESCRIPTION @@ -71,7 +71,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ copied $Num photos to 📂$TargetDir sorted by year and month in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/decrypt-file.ps1 b/Scripts/decrypt-file.ps1 index 2f63500e..a3e4f4d5 100755 --- a/Scripts/decrypt-file.ps1 +++ b/Scripts/decrypt-file.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS decrypt-file.ps1 [] [] .DESCRIPTION @@ -164,7 +164,7 @@ try { DecryptFile "$Path" -algorithm AES -keyAsPlainText $PasswordBase64 -removeSource "✔️ Done." - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/display-time.ps1 b/Scripts/display-time.ps1 index eb21ee2f..ff8ba785 100755 --- a/Scripts/display-time.ps1 +++ b/Scripts/display-time.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS display-time.ps1 [] .DESCRIPTION @@ -22,7 +22,7 @@ try { write-output "" start-sleep -s 1 } - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/download-dir.ps1 b/Scripts/download-dir.ps1 index cb191bc6..f82f4ad2 100755 --- a/Scripts/download-dir.ps1 +++ b/Scripts/download-dir.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS download-dir.ps1 [] .DESCRIPTION @@ -26,7 +26,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ downloaded directory from $URL in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/download-file.ps1 b/Scripts/download-file.ps1 index 4a16fb46..9f62c538 100755 --- a/Scripts/download-file.ps1 +++ b/Scripts/download-file.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS download-file.ps1 [] .DESCRIPTION @@ -26,7 +26,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ downloaded file from $URL in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/edit.ps1 b/Scripts/edit.ps1 index 6ed9af96..77c98ea2 100755 --- a/Scripts/edit.ps1 +++ b/Scripts/edit.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS edit.ps1 .DESCRIPTION @@ -22,7 +22,7 @@ try { if ($lastExitCode -ne "0") { throw "Can't execute 'notepad.exe' - make sure notepad.exe is installed and available" } } - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/enable-crash-dumps.ps1 b/Scripts/enable-crash-dumps.ps1 index ebf4eaa1..e09ac009 100755 --- a/Scripts/enable-crash-dumps.ps1 +++ b/Scripts/enable-crash-dumps.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS enable-crash-dumps.ps1 .DESCRIPTION @@ -294,4 +294,4 @@ Else write-host "You did not enter a valid option. Please re-run Get-Dump.ps1" start-sleep -s 5 } -exit 0 +exit 0 # success diff --git a/Scripts/enable-god-mode.ps1 b/Scripts/enable-god-mode.ps1 index 1f9a1520..aa57e667 100755 --- a/Scripts/enable-god-mode.ps1 +++ b/Scripts/enable-god-mode.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS enable-god-mode.ps1 .DESCRIPTION @@ -20,7 +20,7 @@ try { $null = new-item @GodModeSplat "✔️ enabled god mode - see the new desktop icon" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/encrypt-file.ps1 b/Scripts/encrypt-file.ps1 index 6d533704..f9d28319 100755 --- a/Scripts/encrypt-file.ps1 +++ b/Scripts/encrypt-file.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS encrypt-file.ps1 [] [] .DESCRIPTION @@ -152,7 +152,7 @@ try { EnryptFile "$Path" -Algorithm AES -KeyAsPlainText $PasswordBase64 -RemoveSource "✔️ Done." - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/enter-chat.ps1 b/Scripts/enter-chat.ps1 index e0088fd1..c0929342 100644 --- a/Scripts/enter-chat.ps1 +++ b/Scripts/enter-chat.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS enter-chat.ps1 .DESCRIPTION diff --git a/Scripts/fetch-repo.ps1 b/Scripts/fetch-repo.ps1 index 34f88a04..740b7adb 100755 --- a/Scripts/fetch-repo.ps1 +++ b/Scripts/fetch-repo.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS fetch-repo.ps1 [] .DESCRIPTION @@ -26,7 +26,7 @@ try { if ($lastExitCode -ne "0") { throw "'git fetch' failed" } "✔️ fetched updates for 📂$RepoDirName" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/fetch-repos.ps1 b/Scripts/fetch-repos.ps1 index 786e3614..e2b03ed3 100755 --- a/Scripts/fetch-repos.ps1 +++ b/Scripts/fetch-repos.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS fetch-repos.ps1 [] .DESCRIPTION @@ -39,7 +39,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ fetched $FolderCount Git repositories at 📂$ParentDirName in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/get-md5.ps1 b/Scripts/get-md5.ps1 index d109f7e8..96bd55b7 100755 --- a/Scripts/get-md5.ps1 +++ b/Scripts/get-md5.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS get-md5.ps1 [] .DESCRIPTION @@ -19,7 +19,7 @@ try { $Result = get-filehash $file -algorithm MD5 "✔️ MD5 hash is" $Result.Hash - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/get-sha1.ps1 b/Scripts/get-sha1.ps1 index 33f0d530..a6b77a37 100755 --- a/Scripts/get-sha1.ps1 +++ b/Scripts/get-sha1.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS get-sha1.ps1 [] .DESCRIPTION @@ -19,7 +19,7 @@ try { $Result = get-filehash $file -algorithm SHA1 "✔️ SHA1 hash is" $Result.Hash - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/get-sha256.ps1 b/Scripts/get-sha256.ps1 index 9784d454..7751dab1 100755 --- a/Scripts/get-sha256.ps1 +++ b/Scripts/get-sha256.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS get-sha256.ps1 [] .DESCRIPTION @@ -19,7 +19,7 @@ try { $Result = get-filehash $file -algorithm SHA256 "✔️ SHA256 hash is:" $Result.Hash - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/hibernate.ps1 b/Scripts/hibernate.ps1 index a30cc57c..eb344aaf 100755 --- a/Scripts/hibernate.ps1 +++ b/Scripts/hibernate.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS hibernate.ps1 .DESCRIPTION @@ -18,7 +18,7 @@ try { [System.Windows.Forms.Application]::SetSuspendState("Hibernate", $false, $false); "✔️ Done." - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/inspect-exe.ps1 b/Scripts/inspect-exe.ps1 index 362f148c..3612b1e1 100755 --- a/Scripts/inspect-exe.ps1 +++ b/Scripts/inspect-exe.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS inspect-exe.ps1 [] .DESCRIPTION @@ -17,7 +17,7 @@ try { if ($PathToExe -eq "" ) { $PathToExe = read-host "Enter path to executable file" } get-childitem $PathToExe | % {$_.VersionInfo} | Select * - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/install-github-cli.ps1 b/Scripts/install-github-cli.ps1 index 20ae0e92..ca49405d 100644 --- a/Scripts/install-github-cli.ps1 +++ b/Scripts/install-github-cli.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS install-github-cli.ps1 .DESCRIPTION @@ -25,7 +25,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ installed GitHub CLI in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/install-google-chrome.ps1 b/Scripts/install-google-chrome.ps1 index 5cb622bd..35ec81d6 100755 --- a/Scripts/install-google-chrome.ps1 +++ b/Scripts/install-google-chrome.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS install-google-chrome.ps1 .DESCRIPTION @@ -22,7 +22,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ installed Google Chrome in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/install-knot-resolver.ps1 b/Scripts/install-knot-resolver.ps1 index 0af8c38d..07e28fa9 100644 --- a/Scripts/install-knot-resolver.ps1 +++ b/Scripts/install-knot-resolver.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS install-knot-resolver.ps1 .DESCRIPTION @@ -30,7 +30,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ installed Knot Resolver in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/install-signal-cli.ps1 b/Scripts/install-signal-cli.ps1 index ffc50331..39679dd1 100755 --- a/Scripts/install-signal-cli.ps1 +++ b/Scripts/install-signal-cli.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS install-signal-cli.ps1 [] .DESCRIPTION @@ -37,7 +37,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ installed signal-cli $Version to /opt and /usr/local/bin in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/install-ssh-client.ps1 b/Scripts/install-ssh-client.ps1 index 2f41263d..bca2fbdb 100755 --- a/Scripts/install-ssh-client.ps1 +++ b/Scripts/install-ssh-client.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS install-ssh-client.ps1 .DESCRIPTION @@ -24,7 +24,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ installed SSH client in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/install-ssh-server.ps1 b/Scripts/install-ssh-server.ps1 index 11ace8ce..04e6d8de 100755 --- a/Scripts/install-ssh-server.ps1 +++ b/Scripts/install-ssh-server.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS install-ssh-server.ps1 .DESCRIPTION @@ -38,7 +38,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ installed and started SSH server in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/install-updates.ps1 b/Scripts/install-updates.ps1 index 1509bc86..ec9a6db9 100755 --- a/Scripts/install-updates.ps1 +++ b/Scripts/install-updates.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS install-updates.ps1 .DESCRIPTION @@ -34,7 +34,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ installed updates in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/install-wsl.ps1 b/Scripts/install-wsl.ps1 index c5133669..6ee47fc7 100755 --- a/Scripts/install-wsl.ps1 +++ b/Scripts/install-wsl.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS install-wsl.ps1 .DESCRIPTION @@ -34,7 +34,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ installed Windows Subsystem for Linux (WSL) in $Elapsed sec" " NOTE: reboot now, then visit the Microsoft Store and install a Linux distribution (e.g. Ubuntu, openSUSE, SUSE Linux, Kali Linux, Debian, Fedora, Pengwin, or Alpine)" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/introduce-powershell.ps1 b/Scripts/introduce-powershell.ps1 index 75a3232e..5289d6f3 100755 --- a/Scripts/introduce-powershell.ps1 +++ b/Scripts/introduce-powershell.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS introduce-powershell.ps1 .DESCRIPTION @@ -28,7 +28,7 @@ try { & "$PSScriptRoot/write-typewriter.ps1" "P.S. PowerShell is looking forward to execute your next command" "" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-aliases.ps1 b/Scripts/list-aliases.ps1 index 3371bdc9..5087e294 100755 --- a/Scripts/list-aliases.ps1 +++ b/Scripts/list-aliases.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-aliases.ps1 .DESCRIPTION @@ -13,7 +13,7 @@ try { get-alias - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-anagrams.ps1 b/Scripts/list-anagrams.ps1 index 2d162509..fedbf533 100755 --- a/Scripts/list-anagrams.ps1 +++ b/Scripts/list-anagrams.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-anagrams.ps1 [] [] .DESCRIPTION @@ -58,7 +58,7 @@ try { $Columns = read-host "Enter number of columns" } GetPermutations -String $Word | Format-Wide -Column $Columns - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-automatic-variables.ps1 b/Scripts/list-automatic-variables.ps1 index 375d08a9..60ffea8b 100755 --- a/Scripts/list-automatic-variables.ps1 +++ b/Scripts/list-automatic-variables.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-automatic-variables.ps1 .DESCRIPTION @@ -69,7 +69,7 @@ function ListAutomaticVariables { try { ListAutomaticVariables | format-table -property Variable,Content - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-branches.ps1 b/Scripts/list-branches.ps1 index 19aefd48..1a54ee72 100755 --- a/Scripts/list-branches.ps1 +++ b/Scripts/list-branches.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-branches.ps1 [] [] .DESCRIPTION @@ -35,7 +35,7 @@ try { "$BranchName" } "" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-cheat-sheet.ps1 b/Scripts/list-cheat-sheet.ps1 index 919029a5..f0e6886c 100755 --- a/Scripts/list-cheat-sheet.ps1 +++ b/Scripts/list-cheat-sheet.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-cheat-sheet.ps1 .DESCRIPTION @@ -39,4 +39,4 @@ " `$a,`$b = `$b,`$a : Flip variables" " `$var=[int]5 : Strongly typed variable" "" -exit 0 +exit 0 # success diff --git a/Scripts/list-city-weather.ps1 b/Scripts/list-city-weather.ps1 index 91a3b9c0..5b49f615 100755 --- a/Scripts/list-city-weather.ps1 +++ b/Scripts/list-city-weather.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-city-weather.ps1 .DESCRIPTION @@ -18,7 +18,7 @@ try { $Line = (Invoke-WebRequest http://wttr.in/${City}?format="%c %l+%t+%p+%h+%P+%w +%S →+%s" -UserAgent "curl").Content "$Line" } - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-cli-tools.ps1 b/Scripts/list-cli-tools.ps1 index 2a7a05fe..338b093b 100755 --- a/Scripts/list-cli-tools.ps1 +++ b/Scripts/list-cli-tools.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-cli-tools.ps1 .DESCRIPTION @@ -162,7 +162,7 @@ function ListTools { try { ListTools | format-table -property @{e='Name';width=12},@{e='Version';width=15},@{e='Location';width=45},@{e='FileSize';width=10} - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-clipboard.ps1 b/Scripts/list-clipboard.ps1 index 870ecf04..ba7969ad 100755 --- a/Scripts/list-clipboard.ps1 +++ b/Scripts/list-clipboard.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-clipboard.ps1 .DESCRIPTION @@ -13,7 +13,7 @@ try { "📋 $(get-clipboard)" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-cmdlets.ps1 b/Scripts/list-cmdlets.ps1 index 6cb95c08..8b8ebdf7 100755 --- a/Scripts/list-cmdlets.ps1 +++ b/Scripts/list-cmdlets.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-cmdlets.ps1 .DESCRIPTION @@ -13,7 +13,7 @@ try { Get-Command -Command-Type cmdlet - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-commits.ps1 b/Scripts/list-commits.ps1 index b3fc4d8f..9bdd9c99 100755 --- a/Scripts/list-commits.ps1 +++ b/Scripts/list-commits.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-commits.ps1 [] [] .DESCRIPTION @@ -43,7 +43,7 @@ try { & git -C "$RepoDir" log if ($lastExitCode -ne "0") { throw "'git log' failed" } } - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-console-colors.ps1 b/Scripts/list-console-colors.ps1 index 8be27c5c..49a24447 100755 --- a/Scripts/list-console-colors.ps1 +++ b/Scripts/list-console-colors.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-console-colors.ps1 .DESCRIPTION @@ -22,7 +22,7 @@ try { write-host -noNewline -backgroundcolor $Color "$Color" write-host "" } - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-countries.ps1 b/Scripts/list-countries.ps1 index 25129624..5ef98e1e 100644 --- a/Scripts/list-countries.ps1 +++ b/Scripts/list-countries.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-countries.ps1 .DESCRIPTION @@ -26,7 +26,7 @@ function ListCountries { try { ListCountries | format-table -property Country,Capital,Population,TLD,Phone - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-credits.ps1 b/Scripts/list-credits.ps1 index ac563fad..e8f8027d 100755 --- a/Scripts/list-credits.ps1 +++ b/Scripts/list-credits.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-credits.ps1 .DESCRIPTION @@ -40,7 +40,7 @@ try { & "$PSScriptRoot/write-animated.ps1" "No Animals Were Harmed in the Making of This Film" & "$PSScriptRoot/write-big.ps1" " Thanx 4 watching" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-crypto-rates.ps1 b/Scripts/list-crypto-rates.ps1 index 6294054b..ee9acf90 100644 --- a/Scripts/list-crypto-rates.ps1 +++ b/Scripts/list-crypto-rates.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-crypto-rates.ps1 .DESCRIPTION @@ -45,7 +45,7 @@ try { "=============================" ListCryptoRates | format-table -property @{e='Cryptocurrency';width=28},USD,EUR,RUB,CNY - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-dir-tree.ps1 b/Scripts/list-dir-tree.ps1 index 11aead84..1961b2cc 100755 --- a/Scripts/list-dir-tree.ps1 +++ b/Scripts/list-dir-tree.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-dir-tree.ps1 [] .DESCRIPTION @@ -42,7 +42,7 @@ try { [int]$global:Bytes = 0 ListDir $DirTree 0 write-host "($($global:Dirs) directories, $($global:Files) files, $($global:Bytes) bytes total)" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-dir.ps1 b/Scripts/list-dir.ps1 index 92e938b8..7a2a94dd 100755 --- a/Scripts/list-dir.ps1 +++ b/Scripts/list-dir.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-dir.ps1 [] .DESCRIPTION @@ -29,7 +29,7 @@ function ListDir { param([string]$Pattern) try { ListDir $Pattern | format-wide -autoSize - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-drives.ps1 b/Scripts/list-drives.ps1 index 3fceecff..ab25f080 100755 --- a/Scripts/list-drives.ps1 +++ b/Scripts/list-drives.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-drives.ps1 .DESCRIPTION @@ -13,7 +13,7 @@ try { Get-PSDrive -PSProvider FileSystem | format-table -property Name,Root,@{n="Used (GB)";e={[math]::Round($_.Used/1GB,2)}},@{n="Free (GB)";e={[math]::Round($_.Free/1GB,2)}} - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-earthquakes.ps1 b/Scripts/list-earthquakes.ps1 index bc43817e..ae4c4058 100755 --- a/Scripts/list-earthquakes.ps1 +++ b/Scripts/list-earthquakes.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-earthquakes.ps1 .DESCRIPTION @@ -25,7 +25,7 @@ function ListEarthquakes { try { ListEarthquakes | format-table -property @{e='Mag';width=5},@{e='Location';width=42},@{e='Depth';width=6},Time - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-emojis.ps1 b/Scripts/list-emojis.ps1 index 8cc745f9..45f7e2d5 100644 --- a/Scripts/list-emojis.ps1 +++ b/Scripts/list-emojis.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-emojis.ps1 .DESCRIPTION @@ -57,4 +57,4 @@ "Arrows" "------" "← → ↑ ↓ ↔ ↕ ↖ ↗ ↘ ↙ ⤡ ⤢ ↚ ↛ ↮ ⟵ ⟶ ⟷ ⇦ ⇨ ⇧ ⇩ ⬄ ⇳ ⬁ ⬀ ⬂ ⬃ ⬅ ( ⮕ ➡ ) ⬆ ⬇ ⬉ ⬈ ⬊ ⬋ ⬌ ⬍ 🡐 🡒 🡑 🡓 🡔 🡕 🡖 🡗 🡘 🡙 🠹 🠸 🠻 🠺 🡄 🡆 🡅 🡇 🠼 🠾 🠽 🠿 🡀 🡂 🡁 🡃 🠐 🠒 🠑 🠓 🠔 🠖 🠕 🠗 🠘 🠚 🠙 🠛 🠜 🠞 🠝 🠟 ⭠ ⭢ ⭡ ⭣ ⭤ ⭥ ⭦ ⭧ ⭨ ⭩ 🠀 🠂 🠁 🠃 🠄 🠆 🠅 🠇 🠈 🠊 🠉 🠋 🠠 🠢 🠡 🠣 🠤 🠦 🠥 🠧 🠨 🠪 🠩 🠫 🠬 🠮 🠭 🠯 🠰 🠲 🠱 🠳 🡠 🡢 🡡 🡣 🡤 🡥 🡦 🡧 🡨 🡪 🡩 🡫 🡬 🡭 🡮 🡯 🡰 🡲 🡱 🡳 🡴 🡵 🡶 🡷 🡸 🡺 🡹 🡻 🡼 🡽 🡾 🡿 🢀 🢂 🢁 🢃 🢄 🢅 🢆 🢇 ⮈ ⮊ ⮉ ⮋ ➲ ⮜ ⮞ ⮝ ⮟ ⮘ ⮚ ⮙ ⮛ ➢ ➣ ➤" -exit 0 +exit 0 # success diff --git a/Scripts/list-empty-dirs.ps1 b/Scripts/list-empty-dirs.ps1 index f177306e..d50e734d 100755 --- a/Scripts/list-empty-dirs.ps1 +++ b/Scripts/list-empty-dirs.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-empty-dirs.ps1 [] .DESCRIPTION @@ -22,7 +22,7 @@ try { $Count++ } "✔️ directory tree $DirTree has $Count empty directories" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-empty-files.ps1 b/Scripts/list-empty-files.ps1 index 1e9b4870..bcf2b664 100755 --- a/Scripts/list-empty-files.ps1 +++ b/Scripts/list-empty-files.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-empty-files.ps1 [] .DESCRIPTION @@ -24,7 +24,7 @@ try { } "✔️ found $Count empty file(s)" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-environment-variables.ps1 b/Scripts/list-environment-variables.ps1 index ded329c7..93708975 100755 --- a/Scripts/list-environment-variables.ps1 +++ b/Scripts/list-environment-variables.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-environment-variables.ps1 .DESCRIPTION @@ -13,7 +13,7 @@ try { Get-ChildItem env: - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-exchange-rates.ps1 b/Scripts/list-exchange-rates.ps1 index 0f3582e5..b9942753 100644 --- a/Scripts/list-exchange-rates.ps1 +++ b/Scripts/list-exchange-rates.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-exchange-rates.ps1 [] .DESCRIPTION @@ -26,7 +26,7 @@ try { "================================" ListExchangeRates $currency | format-table -property Rate,Currency,Inverse,Date - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-files.ps1 b/Scripts/list-files.ps1 index 0b37ce42..c9bab967 100755 --- a/Scripts/list-files.ps1 +++ b/Scripts/list-files.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-files.ps1 [] .DESCRIPTION @@ -17,7 +17,7 @@ try { if ($DirTree -eq "" ) { $DirTree = read-host "Enter path to directory tree" } Get-ChildItem -path $DirTree -recurse | select FullName - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-fritzbox-calls.ps1 b/Scripts/list-fritzbox-calls.ps1 index 561b7038..6d6346be 100755 --- a/Scripts/list-fritzbox-calls.ps1 +++ b/Scripts/list-fritzbox-calls.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-fritzbox-calls.ps1 [] [] .DESCRIPTION @@ -95,4 +95,4 @@ function GetCallList { param([int]$MaxEntries = 999, [int]$MaxDays = 999 GetCallList | format-table -property Date,Duration,Caller,Called echo $Result -exit 0 +exit 0 # success diff --git a/Scripts/list-fritzbox-devices.ps1 b/Scripts/list-fritzbox-devices.ps1 index 13b79674..687b0630 100755 --- a/Scripts/list-fritzbox-devices.ps1 +++ b/Scripts/list-fritzbox-devices.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-fritzbox-devices.ps1 [] [] .DESCRIPTION @@ -47,4 +47,4 @@ $HostTable = $HostList.List.Item.GetEnumerator() $HostTable | format-table -property Active,IPAddress,MACAddress,HostName,InterfaceType,X_AVM-DE_Speed -exit 0 +exit 0 # success diff --git a/Scripts/list-hidden-files.ps1 b/Scripts/list-hidden-files.ps1 index f3e4ecc5..c9131999 100755 --- a/Scripts/list-hidden-files.ps1 +++ b/Scripts/list-hidden-files.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-hidden-files.ps1 [] .DESCRIPTION @@ -23,7 +23,7 @@ try { $Count++ } "✔️ directory tree $DirTree has $Count hidden file(s)" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-installed-apps.ps1 b/Scripts/list-installed-apps.ps1 index f927e26b..ea3fe27e 100755 --- a/Scripts/list-installed-apps.ps1 +++ b/Scripts/list-installed-apps.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-installed-apps.ps1 .DESCRIPTION @@ -17,7 +17,7 @@ try { } else { get-appxPackage | select-object Name,Version | format-table -autoSize } - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-installed-software.ps1 b/Scripts/list-installed-software.ps1 index de383db9..630b925a 100755 --- a/Scripts/list-installed-software.ps1 +++ b/Scripts/list-installed-software.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-installed-software.ps1 .DESCRIPTION @@ -14,7 +14,7 @@ try { get-itemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*, HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*, HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | select-object DisplayName,DisplayVersion,InstallDate | format-table -autoSize - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-latest-tag.ps1 b/Scripts/list-latest-tag.ps1 index 0ea9370b..c388c318 100755 --- a/Scripts/list-latest-tag.ps1 +++ b/Scripts/list-latest-tag.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-latest-tag.ps1 [] .DESCRIPTION @@ -28,7 +28,7 @@ try { $LatestTag = (git -C "$RepoDir" describe --tags $LatestTagCommitID) "🔖$LatestTag ($LatestTagCommitID)" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-latest-tags.ps1 b/Scripts/list-latest-tags.ps1 index a3237289..5264ced9 100755 --- a/Scripts/list-latest-tags.ps1 +++ b/Scripts/list-latest-tags.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-latest-tags.ps1 [] .DESCRIPTION @@ -34,7 +34,7 @@ try { $LatestTag = (git -C "$Folder" describe --tags $LatestTagCommitID) "* $FolderName $LatestTag ($LatestTagCommitID)" } - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-memos.ps1 b/Scripts/list-memos.ps1 index 235dabbf..8e58149c 100755 --- a/Scripts/list-memos.ps1 +++ b/Scripts/list-memos.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-memos.ps1 .DESCRIPTION @@ -32,7 +32,7 @@ try { "Sorry, no memos saved yet" exit 1 } - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-modules.ps1 b/Scripts/list-modules.ps1 index 52fe7b0e..21ec219d 100755 --- a/Scripts/list-modules.ps1 +++ b/Scripts/list-modules.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-modules.ps1 .DESCRIPTION @@ -13,7 +13,7 @@ try { get-module | format-table - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-mysql-tables.ps1 b/Scripts/list-mysql-tables.ps1 index 5a2b1dab..94e4bc33 100755 --- a/Scripts/list-mysql-tables.ps1 +++ b/Scripts/list-mysql-tables.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-mysql-tables.ps1 .DESCRIPTION diff --git a/Scripts/list-network-shares.ps1 b/Scripts/list-network-shares.ps1 index 289207b7..aa2d1fc3 100755 --- a/Scripts/list-network-shares.ps1 +++ b/Scripts/list-network-shares.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-network-shares.ps1 .DESCRIPTION @@ -13,7 +13,7 @@ try { get-wmiobject win32_share | where {$_.name -NotLike "*$"} - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-news.ps1 b/Scripts/list-news.ps1 index 873251fe..2eda26c1 100755 --- a/Scripts/list-news.ps1 +++ b/Scripts/list-news.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-news.ps1 [] [] .DESCRIPTION @@ -23,7 +23,7 @@ try { $Count++ if ($Count -eq $MaxCount) { break } } - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-os-releases.ps1 b/Scripts/list-os-releases.ps1 index dff0f6ec..9dd20409 100755 --- a/Scripts/list-os-releases.ps1 +++ b/Scripts/list-os-releases.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-os-releases.ps1 .DESCRIPTION @@ -26,7 +26,7 @@ try { foreach ($Row in $Table) { write-output "* $($Row.Path.substring(3)) -> ipfs://$($Row.IPFS)" } - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-os-updates.ps1 b/Scripts/list-os-updates.ps1 index 3cda5898..8181340d 100755 --- a/Scripts/list-os-updates.ps1 +++ b/Scripts/list-os-updates.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-os-updates.ps1 [] [] .DESCRIPTION @@ -24,7 +24,7 @@ try { $Count++ if ($Count -eq $MaxCount) { break } } - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-passwords.ps1 b/Scripts/list-passwords.ps1 index 001fbf9a..06afd983 100755 --- a/Scripts/list-passwords.ps1 +++ b/Scripts/list-passwords.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-passwords.ps1 [] [] [] .DESCRIPTION @@ -30,7 +30,7 @@ try { write-output "$Line" } write-output "" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-pins.ps1 b/Scripts/list-pins.ps1 index e9aeff67..42456334 100755 --- a/Scripts/list-pins.ps1 +++ b/Scripts/list-pins.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-pins.ps1 [] [] [] .DESCRIPTION @@ -27,7 +27,7 @@ try { write-output $Line } write-output "" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-print-jobs.ps1 b/Scripts/list-print-jobs.ps1 index f6afa9bb..10ed844a 100755 --- a/Scripts/list-print-jobs.ps1 +++ b/Scripts/list-print-jobs.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-print-jobs.ps1 .DESCRIPTION @@ -28,7 +28,7 @@ try { "$($printer.Name) $printjobs" } } - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-printers.ps1 b/Scripts/list-printers.ps1 index 8f4f3386..c63b51ff 100755 --- a/Scripts/list-printers.ps1 +++ b/Scripts/list-printers.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-printers.ps1 .DESCRIPTION @@ -14,7 +14,7 @@ try { $ComputerName = $(hostname) get-WMIObject -Class Win32_Printer -ComputerName $ComputerName | format-table - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-processes.ps1 b/Scripts/list-processes.ps1 index a390a8ec..f4eb21c2 100755 --- a/Scripts/list-processes.ps1 +++ b/Scripts/list-processes.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-processes.ps1 .DESCRIPTION @@ -13,7 +13,7 @@ try { Get-Process | Format-Table -Property Id, @{Label="CPU(s)";Expression={$_.CPU.ToString("N")+"%"};Alignment="Right"}, ProcessName -AutoSize - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-profiles.ps1 b/Scripts/list-profiles.ps1 index 0c506577..2eadbde1 100755 --- a/Scripts/list-profiles.ps1 +++ b/Scripts/list-profiles.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-profiles.ps1 .DESCRIPTION @@ -31,7 +31,7 @@ function ListProfiles { try { ListProfiles | format-table -property Level,Profile,Location,Existent - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-recycle-bin.ps1 b/Scripts/list-recycle-bin.ps1 index 97c50191..7ddfd42a 100755 --- a/Scripts/list-recycle-bin.ps1 +++ b/Scripts/list-recycle-bin.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-recycle-bin.ps1 .DESCRIPTION @@ -13,7 +13,7 @@ try { (New-Object -ComObject Shell.Application).NameSpace(0x0a).Items() | Select-Object Name,Size,Path - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-scripts.ps1 b/Scripts/list-scripts.ps1 index 12f46447..54424420 100755 --- a/Scripts/list-scripts.ps1 +++ b/Scripts/list-scripts.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-scripts.ps1 .DESCRIPTION @@ -29,7 +29,7 @@ try { ListScripts "$PathToRepo/Data/scripts.csv" | format-table -property "PowerShell Script",Description "✔️ $($global:NumScripts) PowerShell scripts total" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-services.ps1 b/Scripts/list-services.ps1 index 1d778711..079acbfd 100755 --- a/Scripts/list-services.ps1 +++ b/Scripts/list-services.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-services.ps1 .DESCRIPTION @@ -13,7 +13,7 @@ try { Get-Service - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-sql-tables.ps1 b/Scripts/list-sql-tables.ps1 index e513b453..82fc0383 100755 --- a/Scripts/list-sql-tables.ps1 +++ b/Scripts/list-sql-tables.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-sql-tables.ps1 .DESCRIPTION diff --git a/Scripts/list-submodules.ps1 b/Scripts/list-submodules.ps1 index 001c5e92..5fc74281 100644 --- a/Scripts/list-submodules.ps1 +++ b/Scripts/list-submodules.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-submodules.ps1 [] .DESCRIPTION @@ -26,7 +26,7 @@ try { & git submodule if ($lastExitCode -ne "0") { throw "'git submodule' failed" } - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-system-info.ps1 b/Scripts/list-system-info.ps1 index e7e5aaa5..4910acd6 100755 --- a/Scripts/list-system-info.ps1 +++ b/Scripts/list-system-info.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-system-info.ps1 .DESCRIPTION @@ -105,4 +105,4 @@ $info = $info | ConvertTo-JSON # Output $info -exit 0 +exit 0 # success diff --git a/Scripts/list-tags.ps1 b/Scripts/list-tags.ps1 index 7981b8ae..5fdf905b 100755 --- a/Scripts/list-tags.ps1 +++ b/Scripts/list-tags.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-tags.ps1 [] [] .DESCRIPTION @@ -29,7 +29,7 @@ try { & git -C "$RepoDir" tag --list "$Pattern" -n if ($lastExitCode -ne "0") { throw "'git tag --list' failed" } - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-tasks.ps1 b/Scripts/list-tasks.ps1 index f5497c35..9a4a892c 100755 --- a/Scripts/list-tasks.ps1 +++ b/Scripts/list-tasks.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-tasks.ps1 .DESCRIPTION @@ -13,7 +13,7 @@ try { Get-ScheduledTask - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-timezone.ps1 b/Scripts/list-timezone.ps1 index 8daea84f..3fcb19ca 100755 --- a/Scripts/list-timezone.ps1 +++ b/Scripts/list-timezone.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-timezone.ps1 .DESCRIPTION @@ -13,7 +13,7 @@ try { get-timezone - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-timezones.ps1 b/Scripts/list-timezones.ps1 index 350772e3..3a4d9c05 100755 --- a/Scripts/list-timezones.ps1 +++ b/Scripts/list-timezones.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-timezones.ps1 .DESCRIPTION @@ -13,7 +13,7 @@ try { get-timezone -listavailable | format-table -property Id,DisplayName,SupportsDaylightSavingTime - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-tiobe-index.ps1 b/Scripts/list-tiobe-index.ps1 index 363f3d8f..0f3998e8 100644 --- a/Scripts/list-tiobe-index.ps1 +++ b/Scripts/list-tiobe-index.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-tiobe-index.ps1 .DESCRIPTION @@ -52,7 +52,7 @@ try { [float]$Change = $Row.Change WriteBar $Name $Value 14.0 $Change } - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-unused-files.ps1 b/Scripts/list-unused-files.ps1 index b3e147cd..f755140c 100755 --- a/Scripts/list-unused-files.ps1 +++ b/Scripts/list-unused-files.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-unused-files.ps1 .DESCRIPTION @@ -20,7 +20,7 @@ try { Get-ChildItem -path $DirTree -recurse | Where-Object {$_.LastAccessTime -le $cutOffDate} | select fullname - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-user-groups.ps1 b/Scripts/list-user-groups.ps1 index dca42739..742e357b 100755 --- a/Scripts/list-user-groups.ps1 +++ b/Scripts/list-user-groups.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-user-groups.ps1 .DESCRIPTION @@ -13,7 +13,7 @@ try { Get-LocalGroup - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-voices.ps1 b/Scripts/list-voices.ps1 index 49e5c33f..d91aa7da 100644 --- a/Scripts/list-voices.ps1 +++ b/Scripts/list-voices.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-voices.ps1 .DESCRIPTION @@ -20,7 +20,7 @@ try { Select-Object -ExpandProperty VoiceInfo | Select-Object -Property Name, Culture, Gender, Age - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-weather.ps1 b/Scripts/list-weather.ps1 index 933b2312..dc256c98 100755 --- a/Scripts/list-weather.ps1 +++ b/Scripts/list-weather.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-weather.ps1 [] .DESCRIPTION @@ -46,7 +46,7 @@ try { $Hour++ } - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/list-workdir.ps1 b/Scripts/list-workdir.ps1 index 4ff64ae6..102e97f3 100644 --- a/Scripts/list-workdir.ps1 +++ b/Scripts/list-workdir.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS list-workdir.ps1 .DESCRIPTION @@ -14,7 +14,7 @@ try { $CWD = resolve-path "$PWD" "📂$CWD" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/locate-city.ps1 b/Scripts/locate-city.ps1 index a1209726..e10d7dcb 100755 --- a/Scripts/locate-city.ps1 +++ b/Scripts/locate-city.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS locate-city.ps1 [] .DESCRIPTION @@ -33,7 +33,7 @@ try { } if ($FoundOne) { - exit 0 + exit 0 # success } write-error "City $City not found" exit 1 diff --git a/Scripts/locate-ipaddress.ps1 b/Scripts/locate-ipaddress.ps1 index 8e9f7f36..a40707a9 100755 --- a/Scripts/locate-ipaddress.ps1 +++ b/Scripts/locate-ipaddress.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS locate-ipaddress.ps1 [] .DESCRIPTION @@ -18,7 +18,7 @@ try { $result = Invoke-RestMethod -Method Get -Uri "http://ip-api.com/json/$IPaddr" write-output $result - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/locate-zip-code.ps1 b/Scripts/locate-zip-code.ps1 index 081c7d18..94d5d4a0 100755 --- a/Scripts/locate-zip-code.ps1 +++ b/Scripts/locate-zip-code.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS locate-zip-code.ps1 [] [] .DESCRIPTION @@ -35,7 +35,7 @@ try { } if ($FoundOne) { - exit 0 + exit 0 # success } throw "Zip-code $ZipCode in country $CountryCode not found" } catch { diff --git a/Scripts/make-install.ps1 b/Scripts/make-install.ps1 index 24a3ee73..364d3ef2 100755 --- a/Scripts/make-install.ps1 +++ b/Scripts/make-install.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS make-install.ps1 .DESCRIPTION @@ -24,7 +24,7 @@ try { echo. "✔️ synced to %DST_DIR%" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/make-repo.ps1 b/Scripts/make-repo.ps1 index d8be619b..0b1d3a3f 100755 --- a/Scripts/make-repo.ps1 +++ b/Scripts/make-repo.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS make-repo.ps1 [] .DESCRIPTION @@ -103,7 +103,7 @@ function MakeDir { param($Path) MakeDir "$Path/$DirName" } else { write-warning "Sorry, no make rule applies to: 📂$DirName" - exit 0 + exit 0 # success } } @@ -119,7 +119,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ built Git repository 📂$RepoDirName in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/make-repos.ps1 b/Scripts/make-repos.ps1 index a665a406..27454156 100755 --- a/Scripts/make-repos.ps1 +++ b/Scripts/make-repos.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS make-repos.ps1 [] .DESCRIPTION @@ -31,7 +31,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ built $FolderCount Git repositories at 📂$ParentDirName in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/moon.ps1 b/Scripts/moon.ps1 index d200d4d1..5a9644ec 100755 --- a/Scripts/moon.ps1 +++ b/Scripts/moon.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS moon.ps1 .DESCRIPTION @@ -13,7 +13,7 @@ try { (Invoke-WebRequest http://wttr.in/Moon -UserAgent "curl" ).Content - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/mute-audio.ps1 b/Scripts/mute-audio.ps1 index 00ce11dd..f352b538 100755 --- a/Scripts/mute-audio.ps1 +++ b/Scripts/mute-audio.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS mute-audio.ps1 .DESCRIPTION @@ -15,7 +15,7 @@ try { $obj = new-object -com wscript.shell $obj.SendKeys([char]173) "🔇 audio is muted" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/my-profile.ps1 b/Scripts/my-profile.ps1 index 1784ab79..08456ad8 100755 --- a/Scripts/my-profile.ps1 +++ b/Scripts/my-profile.ps1 @@ -1,4 +1,4 @@ -# My PowerShell Profile +# My PowerShell Profile # ===================== # Welcome to 'my-profile.ps1' - this file defines the look & feel of PowerShell. # Adapt the following lines to your needs, please. diff --git a/Scripts/new-branch.ps1 b/Scripts/new-branch.ps1 index d5b01217..18e3d592 100755 --- a/Scripts/new-branch.ps1 +++ b/Scripts/new-branch.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS new-branch.ps1 [] [] .DESCRIPTION @@ -41,7 +41,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ created new branch '$BranchName' in Git repository 📂$RepoDirName in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/new-email.ps1 b/Scripts/new-email.ps1 index 2f0048c3..f3bc1e2b 100755 --- a/Scripts/new-email.ps1 +++ b/Scripts/new-email.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS new-email.ps1 [
] .DESCRIPTION @@ -16,7 +16,7 @@ param([string]$EmailAddress = "markus@fleschutz.de") try { $URL="mailto:$EmailAddress" Start-Process $URL - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/new-qrcode.ps1 b/Scripts/new-qrcode.ps1 index 85eb20e0..dca5eb59 100755 --- a/Scripts/new-qrcode.ps1 +++ b/Scripts/new-qrcode.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS new-qrcode.ps1 [] [] .DESCRIPTION @@ -32,7 +32,7 @@ try { "&format=" + $FileFormat), $NewFile) "✔️ new QR code image file written to: $NewFile" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/new-script.ps1 b/Scripts/new-script.ps1 index 0bd2b67f..40a75c51 100755 --- a/Scripts/new-script.ps1 +++ b/Scripts/new-script.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS new-script.ps1 [] .DESCRIPTION @@ -19,7 +19,7 @@ try { copy-item "$PSScriptRoot/../data/template.ps1" "$filename" "✔️ created new PowerShell script $filename" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/new-shortcut.ps1 b/Scripts/new-shortcut.ps1 index 53773eaa..3e23c3b5 100755 --- a/Scripts/new-shortcut.ps1 +++ b/Scripts/new-shortcut.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS new-shortcut.ps1 [] [] [] .DESCRIPTION @@ -27,7 +27,7 @@ try { $sc.save() "✔️ created new shortcut $shortcut ⭢ $target" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/new-symlink.ps1 b/Scripts/new-symlink.ps1 index 9332083e..10b44baf 100755 --- a/Scripts/new-symlink.ps1 +++ b/Scripts/new-symlink.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS new-symlink.ps1 [] [] .DESCRIPTION @@ -20,7 +20,7 @@ try { new-item -path "$symlink" -itemType SymbolicLink -Value "$target" "✔️ created new symlink $symlink ⭢ $target" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/new-tag.ps1 b/Scripts/new-tag.ps1 index e0087752..f4231bb8 100755 --- a/Scripts/new-tag.ps1 +++ b/Scripts/new-tag.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS new-tag.ps1 [] [] .DESCRIPTION @@ -39,7 +39,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ created new tag '$TagName' in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/new-zipfile.ps1 b/Scripts/new-zipfile.ps1 index f433855d..86ef32b1 100755 --- a/Scripts/new-zipfile.ps1 +++ b/Scripts/new-zipfile.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS new-zipfile.ps1 [] .DESCRIPTION @@ -22,7 +22,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ created zip file $($directory).zip in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/open-browser.ps1 b/Scripts/open-browser.ps1 index 0401a77e..f607351d 100755 --- a/Scripts/open-browser.ps1 +++ b/Scripts/open-browser.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS open-browser.ps1 [] .DESCRIPTION @@ -15,7 +15,7 @@ param([string]$URL = "http://www.fleschutz.de") try { Start-Process $URL - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/open-calculator.ps1 b/Scripts/open-calculator.ps1 index 738cb1f6..58b3e163 100755 --- a/Scripts/open-calculator.ps1 +++ b/Scripts/open-calculator.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS open-calculator.ps1 .DESCRIPTION @@ -13,7 +13,7 @@ try { start-process calc.exe - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/open-email-client.ps1 b/Scripts/open-email-client.ps1 index c8c07439..a10741a5 100755 --- a/Scripts/open-email-client.ps1 +++ b/Scripts/open-email-client.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS open-email-client.ps1 .DESCRIPTION @@ -13,7 +13,7 @@ try { start-process "mailto:markus@fleschutz.de" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/open-file-explorer.ps1 b/Scripts/open-file-explorer.ps1 index a300f3fe..52766868 100755 --- a/Scripts/open-file-explorer.ps1 +++ b/Scripts/open-file-explorer.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS open-file-explorer.ps1 .DESCRIPTION @@ -13,7 +13,7 @@ try { start-process explorer.exe - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/open-netflix.ps1 b/Scripts/open-netflix.ps1 index 8e6444ab..f7046be7 100755 --- a/Scripts/open-netflix.ps1 +++ b/Scripts/open-netflix.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS open-netflix.ps1 .DESCRIPTION @@ -12,4 +12,4 @@ #> Start-Process netflix: -exit 0 +exit 0 # success diff --git a/Scripts/open-onedrive.ps1 b/Scripts/open-onedrive.ps1 index ffc7ed92..0bd78fcb 100755 --- a/Scripts/open-onedrive.ps1 +++ b/Scripts/open-onedrive.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS open-onedrive.ps1 .DESCRIPTION @@ -12,4 +12,4 @@ #> Start-Process "$($env:USERPROFILE)\AppData\Local\Microsoft\OneDrive\OneDrive.exe" -exit 0 +exit 0 # success diff --git a/Scripts/open-recycle-bin.ps1 b/Scripts/open-recycle-bin.ps1 index f2e31478..f45ec706 100755 --- a/Scripts/open-recycle-bin.ps1 +++ b/Scripts/open-recycle-bin.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS open-recycle-bin.ps1 .DESCRIPTION @@ -13,7 +13,7 @@ try { start shell:recyclebinfolder - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/play-beep.ps1 b/Scripts/play-beep.ps1 index b8bb59f1..f557230d 100755 --- a/Scripts/play-beep.ps1 +++ b/Scripts/play-beep.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS play-beep.ps1 .DESCRIPTION @@ -12,4 +12,4 @@ #> [console]::beep(500,300) -exit 0 +exit 0 # success diff --git a/Scripts/play-files.ps1 b/Scripts/play-files.ps1 index 5ffa31e8..b4f73802 100755 --- a/Scripts/play-files.ps1 +++ b/Scripts/play-files.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS play-files.ps1 [] .DESCRIPTION @@ -25,7 +25,7 @@ try { "Skipping $File ..." } } - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/play-happy-birthday.ps1 b/Scripts/play-happy-birthday.ps1 index c018bb3a..9be7096c 100644 --- a/Scripts/play-happy-birthday.ps1 +++ b/Scripts/play-happy-birthday.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS play-happy-birthday.ps1 .DESCRIPTION @@ -38,4 +38,4 @@ [System.Console]::Beep(1413.961, 500) [System.Console]::Beep(1587.117, 500) [System.Console]::Beep(1413.961, 900) -exit 0 +exit 0 # success diff --git a/Scripts/play-imperial-march.ps1 b/Scripts/play-imperial-march.ps1 index 98219843..e43ac7cd 100755 --- a/Scripts/play-imperial-march.ps1 +++ b/Scripts/play-imperial-march.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS play-imperial-march.ps1 .DESCRIPTION @@ -29,4 +29,4 @@ [System.Console]::beep(349, 350) [System.Console]::beep(523, 150) [System.Console]::beep(440, 1000) -exit 0 +exit 0 # success diff --git a/Scripts/play-jingle-bells.ps1 b/Scripts/play-jingle-bells.ps1 index fb78f900..8c4277ee 100644 --- a/Scripts/play-jingle-bells.ps1 +++ b/Scripts/play-jingle-bells.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS play-jingle-bells.ps1 .DESCRIPTION @@ -157,4 +157,4 @@ Start-Sleep -m $Duration.EIGHTH [System.Console]::Beep($Notes.BB, $Duration.QUARTER) [System.Console]::Beep($Notes.G, $Duration.QUARTER) [System.Console]::Beep($Notes.F, $Duration.HALF) -exit 0 +exit 0 # success diff --git a/Scripts/play-m3u.ps1 b/Scripts/play-m3u.ps1 index 03fce322..7db646bf 100755 --- a/Scripts/play-m3u.ps1 +++ b/Scripts/play-m3u.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS play-m3u.ps1 [] .DESCRIPTION @@ -41,7 +41,7 @@ try { $MediaPlayer.stop() $MediaPlayer.close() } - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/play-mission-impossible.ps1 b/Scripts/play-mission-impossible.ps1 index 7c9c4acd..13fffe6b 100755 --- a/Scripts/play-mission-impossible.ps1 +++ b/Scripts/play-mission-impossible.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS play-mission-impossible.ps1 .DESCRIPTION @@ -57,4 +57,4 @@ Start-Sleep -m 75 Start-Sleep -m 150 [console]::beep(466,150) [console]::beep(523,150) -exit 0 +exit 0 # success diff --git a/Scripts/play-mp3.ps1 b/Scripts/play-mp3.ps1 index 68be5c63..b3bfae68 100755 --- a/Scripts/play-mp3.ps1 +++ b/Scripts/play-mp3.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS play-mp3.ps1 [] .DESCRIPTION @@ -40,7 +40,7 @@ try { $MediaPlayer.close() $host.ui.RawUI.WindowTitle = $PreviousTitle - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/play-super-mario.ps1 b/Scripts/play-super-mario.ps1 index 18be7614..73debaa5 100755 --- a/Scripts/play-super-mario.ps1 +++ b/Scripts/play-super-mario.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS play-super-mario.ps1 .DESCRIPTION @@ -35,4 +35,4 @@ [console]::beep(523,250) ## C [console]::beep(587,225) ## D [console]::beep(494,225) ## B -exit 0 +exit 0 # success diff --git a/Scripts/play-tetris-melody.ps1 b/Scripts/play-tetris-melody.ps1 index d1a9c666..383599fd 100644 --- a/Scripts/play-tetris-melody.ps1 +++ b/Scripts/play-tetris-melody.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS play-tetris-melody.ps1 .DESCRIPTION @@ -125,4 +125,4 @@ start-sleep -milliseconds 500 [System.Console]::Beep(660,500) [System.Console]::Beep(880,1000) [System.Console]::Beep(838,2000) -exit 0 +exit 0 # success diff --git a/Scripts/poweroff.ps1 b/Scripts/poweroff.ps1 index edd6078f..51fa4259 100755 --- a/Scripts/poweroff.ps1 +++ b/Scripts/poweroff.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS poweroff.ps1 .DESCRIPTION @@ -15,7 +15,7 @@ try { Stop-Computer - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/publish-to-ipfs.ps1 b/Scripts/publish-to-ipfs.ps1 index b951f731..031a4796 100755 --- a/Scripts/publish-to-ipfs.ps1 +++ b/Scripts/publish-to-ipfs.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS publish-to-ipfs.ps1 [] [] .DESCRIPTION @@ -48,7 +48,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ published $Count file(s)/folder(s) to IPFS in $Elapsed sec" " NOTE: to publish it to IPNS execute: ipfs name publish " - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/pull-repo.ps1 b/Scripts/pull-repo.ps1 index 4b9e1059..85223853 100755 --- a/Scripts/pull-repo.ps1 +++ b/Scripts/pull-repo.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS pull-repo.ps1 [] .DESCRIPTION @@ -24,7 +24,7 @@ try { if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" } if ("$Result" -match "HEAD detached at ") { write-warning "Not on a branch, so nothing to pull (in detached HEAD state)" - exit 0 + exit 0 # success } & git pull --recurse-submodules --jobs=4 @@ -36,7 +36,7 @@ try { $RepoDirName = (get-item "$RepoDir").Name [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ pulled updates for Git repository 📂$RepoDirName in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/pull-repos.ps1 b/Scripts/pull-repos.ps1 index 5dbb6777..c9afe878 100755 --- a/Scripts/pull-repos.ps1 +++ b/Scripts/pull-repos.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS pull-repos.ps1 [] .DESCRIPTION @@ -42,7 +42,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ pulled $FolderCount Git repositories at 📂$ParentDirName in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/query-smart-data.ps1 b/Scripts/query-smart-data.ps1 index e8902bad..6ab2ad28 100755 --- a/Scripts/query-smart-data.ps1 +++ b/Scripts/query-smart-data.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS query-smart-data.ps1 [] .DESCRIPTION @@ -54,7 +54,7 @@ try { } "✔️ Done." - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/reboot-fritzbox.ps1 b/Scripts/reboot-fritzbox.ps1 index 16e4d6ea..3c47b36f 100755 --- a/Scripts/reboot-fritzbox.ps1 +++ b/Scripts/reboot-fritzbox.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS reboot-fritzbox.ps1 [] [] .DESCRIPTION @@ -97,4 +97,4 @@ function Reboot-FritzBox { $Result = Reboot-FritzBox echo $Result -exit 0 +exit 0 # success diff --git a/Scripts/reboot.ps1 b/Scripts/reboot.ps1 index 986eda7e..37e96ff3 100755 --- a/Scripts/reboot.ps1 +++ b/Scripts/reboot.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS reboot.ps1 .DESCRIPTION @@ -15,7 +15,7 @@ try { Restart-Computer - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/remove-empty-dirs.ps1 b/Scripts/remove-empty-dirs.ps1 index 0040c1eb..3caec55d 100755 --- a/Scripts/remove-empty-dirs.ps1 +++ b/Scripts/remove-empty-dirs.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS remove-empty-dirs.ps1 [] .DESCRIPTION @@ -40,7 +40,7 @@ try { } } "✔️ Done." - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/remove-print-jobs.ps1 b/Scripts/remove-print-jobs.ps1 index 837aad21..81d14c31 100755 --- a/Scripts/remove-print-jobs.ps1 +++ b/Scripts/remove-print-jobs.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS remove-print-jobs.ps1 .DESCRIPTION @@ -25,7 +25,7 @@ try { } "✔️ all print jobs removed" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/remove-tag.ps1 b/Scripts/remove-tag.ps1 index 7ce7b7ff..ad315f85 100755 --- a/Scripts/remove-tag.ps1 +++ b/Scripts/remove-tag.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS remove-tag.ps1 [] [] [] .DESCRIPTION @@ -38,7 +38,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ removed tag '$TagName' in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/replace-in-files.ps1 b/Scripts/replace-in-files.ps1 index af049797..57f46ce0 100644 --- a/Scripts/replace-in-files.ps1 +++ b/Scripts/replace-in-files.ps1 @@ -32,8 +32,8 @@ try { ReplaceInFile $file $pattern $replacement } [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds - "✔️ replaced '$pattern' by '$replacement' in $($Files.Count) files in $Elapsed sec" - exit 0 + "✔️ replaced '$pattern' by '$replacement' in $($fileList.Count) files in $Elapsed sec" + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/restart-network-adapters.ps1 b/Scripts/restart-network-adapters.ps1 index 0aebf600..f243a715 100644 --- a/Scripts/restart-network-adapters.ps1 +++ b/Scripts/restart-network-adapters.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS restart-network-adapters.ps1 .DESCRIPTION @@ -20,7 +20,7 @@ try { [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ restarted all local network adapters in $Elapsed sec" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/scan-ports.ps1 b/Scripts/scan-ports.ps1 index 788c6ded..5e59c826 100755 --- a/Scripts/scan-ports.ps1 +++ b/Scripts/scan-ports.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS scan-ports.ps1 .DESCRIPTION @@ -29,4 +29,4 @@ foreach($add in $range) { } } } -exit 0 +exit 0 # success diff --git a/Scripts/search-filename.ps1 b/Scripts/search-filename.ps1 index 0e88c0ca..0c1b2c8e 100755 --- a/Scripts/search-filename.ps1 +++ b/Scripts/search-filename.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS search-filename.ps1 .DESCRIPTION @@ -37,4 +37,4 @@ function Search-Folder($FilePath, $SearchTerm) { } # Call the search function Search-Folder -FilePath $path -SearchTerm $term -exit 0 +exit 0 # success diff --git a/Scripts/search-files.ps1 b/Scripts/search-files.ps1 index 665d3fff..c5b20b8f 100755 --- a/Scripts/search-files.ps1 +++ b/Scripts/search-files.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS search-files.ps1 [] [] .DESCRIPTION @@ -30,7 +30,7 @@ try { if ($files -eq "" ) { $files = read-host "Enter path to files" } ListLocations $pattern $files | format-table -property Path,Line,Text - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/send-email.ps1 b/Scripts/send-email.ps1 index e350c71c..a7c3b0a8 100755 --- a/Scripts/send-email.ps1 +++ b/Scripts/send-email.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS send-email.ps1 .DESCRIPTION @@ -27,7 +27,7 @@ try { $msg.body = $Body $smtp.Send($msg) "✔️ Message sent." - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/send-tcp.ps1 b/Scripts/send-tcp.ps1 index 91396ef5..3e291239 100755 --- a/Scripts/send-tcp.ps1 +++ b/Scripts/send-tcp.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS send-tcp.ps1 [] [] [] .DESCRIPTION @@ -31,7 +31,7 @@ try { $Socket.Close() "✔️ Done." - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/send-udp.ps1 b/Scripts/send-udp.ps1 index 54ff6ef5..eaddaa4f 100755 --- a/Scripts/send-udp.ps1 +++ b/Scripts/send-udp.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS send-udp.ps1 [] [] [] .DESCRIPTION @@ -27,7 +27,7 @@ try { $Socket.Close() "✔️ Done." - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/set-profile.ps1 b/Scripts/set-profile.ps1 index 9867d0ac..84564f11 100755 --- a/Scripts/set-profile.ps1 +++ b/Scripts/set-profile.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS set-profile.ps1 .DESCRIPTION @@ -18,7 +18,7 @@ try { copy-item "$PathToRepo/Scripts/my-profile.ps1" "$PathToProfile" -force "✔️ updated PowerShell profile 'CurrentUserCurrentHost' by my-profile.ps1 - it gets active on next login" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/set-timer.ps1 b/Scripts/set-timer.ps1 index 5ef79cd0..26d9f714 100755 --- a/Scripts/set-timer.ps1 +++ b/Scripts/set-timer.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS set-timer.ps1 [] .DESCRIPTION @@ -23,7 +23,7 @@ try { } "✔️ $Seconds seconds countdown finished" - exit 0 + exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" exit 1 diff --git a/Scripts/set-wallpaper.ps1 b/Scripts/set-wallpaper.ps1 index 9cb03014..d0d48037 100755 --- a/Scripts/set-wallpaper.ps1 +++ b/Scripts/set-wallpaper.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS set-wallpaper.ps1 [] [