Updated install-syncthing.ps1

This commit is contained in:
Markus Fleschutz 2025-05-17 14:19:04 +02:00
parent 0cbe8e69c4
commit d8ebaae190

View File

@ -2,9 +2,12 @@
.SYNOPSIS .SYNOPSIS
Installs Syncthing Installs Syncthing
.DESCRIPTION .DESCRIPTION
This PowerShell scripts installs Syncthing on your computer. This PowerShell script installs Syncthing on your computer.
Syncthing is a continuous file synchronization program. See https://syncthing.net for details.
.EXAMPLE .EXAMPLE
PS> ./install-syncthing.ps1 PS> ./install-syncthing.ps1
Installing Syncthing...
...
.LINK .LINK
Author: Markus Fleschutz | License: CC0 Author: Markus Fleschutz | License: CC0
.NOTES .NOTES
@ -21,7 +24,9 @@ try {
& winget install --id Syncthing.Syncthing & winget install --id Syncthing.Syncthing
} }
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds [int]$elapsed = $stopWatch.Elapsed.TotalSeconds
"✅ Syncthing installed successfully in $($elapsed)s. Visit 127.0.0.1:8384 for setup and see the ~/Sync folder" "✅ Syncthing installed successfully in $($elapsed)s."
" Adming GUI at: http://127.0.0.1:8384 (use <Ctrl> <click>)"
" Your sync folder is at: ~/Sync/"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"