summary refs log tree commit diff
path: root/template/pkg.conf
diff options
context:
space:
mode:
authorDruid520 <r.ustydruid520@proton.me>2026-08-11 18:12:24 -0700
committerDruid520 <r.ustydruid520@proton.me>2026-08-11 18:12:24 -0700
commit3dc4c90bbab3838eeef1ed5ab54f6fc5ed833aed (patch)
tree9fdba678776a21cf8e42387c75568fd81a4413e0 /template/pkg.conf
parent7166f04ef0668e9b36c08cf37a8006ab4bf2b0e3 (diff)
MOD: cleanup and updt
Diffstat (limited to 'template/pkg.conf')
-rw-r--r--template/pkg.conf25
1 files changed, 25 insertions, 0 deletions
diff --git a/template/pkg.conf b/template/pkg.conf index 4ced20e..a0df82c 100644 --- a/template/pkg.conf +++ b/template/pkg.conf
@@ -2,3 +2,28 @@ pkg_name="template"
2pkg_license="GPL-3.0-or-later" 2pkg_license="GPL-3.0-or-later"
3pkg_ver="1.0.0" 3pkg_ver="1.0.0"
4pkg_repo="no-repo" 4pkg_repo="no-repo"
5
6war() {
7 echo "warn: $1" >&2
8}
9die() {
10 echo "err: $1" >&2
11 exit 1
12}
13ok() {
14 echo "ok: $1" >&2
15}
16if command -v doas >/dev/null 2>&1; then
17 rx() {
18 doas "$@"
19 }
20 return
21elif command -v sudo >/dev/null 2>&1; then
22 rx() {
23 sudo "$@"
24 }
25 return
26else
27 die "permission elevator not found."
28fi
29