mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 13:04:59 +02:00
Renamed folder Scripts to scripts
This commit is contained in:
13
scripts/install-octoprint.ps1
Executable file
13
scripts/install-octoprint.ps1
Executable file
@ -0,0 +1,13 @@
|
||||
|
||||
try {
|
||||
"⏳ Installing OctoPrint (snap 'octoprint-pfs', channel 'edge')..."
|
||||
|
||||
& sudo snap install octoprint-pfs --edge
|
||||
if ($lastExitCode -ne "0") { throw "'snap install octoprint-pfs' exited with code $lastExitCode" }
|
||||
|
||||
"HINT: Access Octoprint's web login at: http://<HOSTNAME>:5000"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
Reference in New Issue
Block a user