: nply/minci

commit aad21effb10445661a379e1344a9efee6b70d254
parent 2b13ec869e5ffc5f378faca074fc8d41e9e4f6ab
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Fri, 11 Sep 2026 23:19:58 +0530

Allow disabling runner auto-update
2 files changed, 13 insertions(+), 0 deletions(-)
M
minci.example
|
1
+
M
minci.sh
|
12
++++++++++++
diff --git a/minci.example b/minci.example
@@ -38,3 +38,4 @@ server = https://kristaps.bsd.lv/cgi-bin/minci.cgi
 # self-update source.
 
 #mincirepo = https://git.nply.org/minci
+#autoup = no
diff --git a/minci.sh b/minci.sh
@@ -224,6 +224,18 @@ then
 	fatal "no server specified"
 fi
 
+# Read the auto-update setting from the configuration.
+
+while read -r ln
+do
+	autoup="$(echo "$ln" | sed -n 's!^[ ]*autoup[ ]*=[ ]*!!p')"
+	[ -z "$autoup" ] && continue
+	case "$autoup" in
+	0|no|false) AUTOUP= ;;
+	*) AUTOUP=1 ;;
+	esac
+done < "$CONFIG"
+
 # Read the minci repository from the configuration.
 
 while read -r ln