#!shebang

This commit is contained in:
lda
2026-04-11 14:39:56 +07:00 Unverified
parent fc2243ed8f
commit a36e9d058d
6 changed files with 6 additions and 1 deletions
+1
View File
@@ -1,3 +1,4 @@
#!/usr/bin/env pwsh
# Starts the Windows-host Gitea act_runner if not already running. # Starts the Windows-host Gitea act_runner if not already running.
# Usage: ./scripts/act_runner.ps1 -Config "C:/Users/Admin/Documents/gitea/runner.yaml" -RunnerPath "C:/Users/Admin/Documents/gitea/act_runner.exe" -ServerUrl "https://git.ldlda.com/" -Token "<reg token>" -Labels "self-hosted,windows:host" # Usage: ./scripts/act_runner.ps1 -Config "C:/Users/Admin/Documents/gitea/runner.yaml" -RunnerPath "C:/Users/Admin/Documents/gitea/act_runner.exe" -ServerUrl "https://git.ldlda.com/" -Token "<reg token>" -Labels "self-hosted,windows:host"
param( param(
+1
View File
@@ -1,3 +1,4 @@
#!/usr/bin/env pwsh
param( param(
[ValidateSet("update", "register", "start", "stop", "status")] [ValidateSet("update", "register", "start", "stop", "status")]
[string]$Action = "start", [string]$Action = "start",
+1
View File
@@ -1,3 +1,4 @@
#!/usr/bin/env pwsh
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidDefaultValueSwitchParameter', "", [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidDefaultValueSwitchParameter', "",
Justification = 'Default true is intentional for fast dev loop')] Justification = 'Default true is intentional for fast dev loop')]
param( param(
+1 -1
View File
@@ -15,7 +15,7 @@ fi
kill -TERM "$pids" 2>/dev/null || true kill -TERM "$pids" 2>/dev/null || true
# Optional: hard kill if still alive after a short grace # Optional: hard kill if still alive after a short grace
usleep 250000 # uhhh sleep is stupid usleep 250000 # uhhh sleep is not found
remain="" remain=""
for p in $pids; do for p in $pids; do
kill -0 "$p" 2>/dev/null && remain="$remain $p" kill -0 "$p" 2>/dev/null && remain="$remain $p"
+1
View File
@@ -1,3 +1,4 @@
#!/usr/bin/env pwsh
# Build a rootfs tarball suitable for `wget -O- ... | tar -xz -C /` on OpenWrt. # Build a rootfs tarball suitable for `wget -O- ... | tar -xz -C /` on OpenWrt.
# It lays out files as absolute-root paths inside the archive: # It lays out files as absolute-root paths inside the archive:
# root/.bin/wakey # root/.bin/wakey
+1
View File
@@ -1,3 +1,4 @@
#!/usr/bin/env pwsh
# Publish to registry and tag # Publish to registry and tag
# Usage: ./scripts/publish.ps1 -Version 0.1.0 -Tag # Usage: ./scripts/publish.ps1 -Version 0.1.0 -Tag
# Publish to registry and tag (manual; CI does not use this) # Publish to registry and tag (manual; CI does not use this)