this shit works yo

This commit is contained in:
lda
2026-04-04 08:22:42 +07:00 Unverified
parent 4bb8fa161d
commit f483a8507a
13 changed files with 482 additions and 186 deletions
+15
View File
@@ -1,5 +1,20 @@
# Shared functions for wakey scripts
function Get-DefaultPassword {
param([string]$Password)
if ($Password) {
return $Password
}
$pwPath = Join-Path (Split-Path -Parent $PSScriptRoot) 'ar_data/pw'
if (-not (Test-Path $pwPath)) {
throw "Password not provided and default file not found: $pwPath"
}
return (Get-Content -Raw $pwPath).Trim()
}
function Invoke-Ext {
param($Exe, $Arguments, $Label)
$displayArgs = $Arguments.Clone()