We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a613848 commit 6483fb8Copy full SHA for 6483fb8
1 file changed
lib/armbian-configng/config.ng.system.sh
@@ -1,6 +1,27 @@
1
#!/bin/bash
2
3
4
+ module_options+=(
5
+["apt_install_wrapper,author"]="igorpecovnik"
6
+["apt_install_wrapper,ref_link"]=""
7
+["apt_install_wrapper,feature"]="Install wrapper"
8
+["apt_install_wrapper,desc"]="Install wrapper"
9
+["apt_install_wrapper,example"]="apt_install_wrapper apt-get -y purge armbian-zsh"
10
+["apt_install_wrapper,status"]="Active"
11
+)
12
+#
13
+# @description Use TUI / GUI for apt install if exists
14
15
+function apt_install_wrapper
16
+{
17
+if [ -t 0 ] ; then
18
+ debconf-apt-progress -- $@
19
+else
20
+ # Terminal not defined - proceed without TUI
21
+ $@
22
+fi
23
+
24
25
module_options+=(
26
["install_de,author"]="Igor Pecovnik"
27
["install_de,ref_link"]=""
0 commit comments