mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-06-30 12:41:46 +02:00
Add executable bits for Linux
This commit is contained in:
@ -53,12 +53,12 @@ try {
|
|||||||
& sudo unbound-control status
|
& sudo unbound-control status
|
||||||
if ($lastExitCode -ne "0") { throw "'unbound-control status' failed" }
|
if ($lastExitCode -ne "0") { throw "'unbound-control status' failed" }
|
||||||
|
|
||||||
"⏳ (10/10) Training Unbound with 200 popular domain names..."
|
"⏳ (10/10) Training Unbound with 100 popular domain names..."
|
||||||
& "$PSScriptRoot/check-dns.ps1"
|
& "$PSScriptRoot/check-dns.ps1"
|
||||||
if ($lastExitCode -ne "0") { throw "'unbound-control status' failed" }
|
if ($lastExitCode -ne "0") { throw "'unbound-control status' failed" }
|
||||||
|
|
||||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||||
"✔️ installed Unbound in $Elapsed sec"
|
"✔️ Installed Unbound in $Elapsed sec"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
0
Scripts/play-pong.ps1
Normal file → Executable file
0
Scripts/play-pong.ps1
Normal file → Executable file
0
Scripts/play-rick.ps1
Normal file → Executable file
0
Scripts/play-rick.ps1
Normal file → Executable file
Reference in New Issue
Block a user