summaryrefslogtreecommitdiff
path: root/utils/lib.sh
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2020-03-02 19:00:19 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2020-03-02 19:00:19 +0100
commitc3e4753ce951f759844db13d98f9ad5b226f84b6 (patch)
tree70841eec657c248ffd2048c4175d80cd4a345508 /utils/lib.sh
parent491cb95a1f910e17ac022ddfa73b68aae2fbc6e2 (diff)
docs: generic documentation from the installation scripts
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/lib.sh')
-rwxr-xr-xutils/lib.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/lib.sh b/utils/lib.sh
index 47e9e8030..6de66bcaf 100755
--- a/utils/lib.sh
+++ b/utils/lib.sh
@@ -933,7 +933,9 @@ pkg_install() {
# usage: TITEL='install foobar' pkg_install foopkg barpkg
rst_title "${TITLE:-installation of packages}" section
- echo -en "\npackage(s)::\n\n $*\n" | $FMT
+ echo -e "\npackage(s)::\n"
+ # shellcheck disable=SC2068
+ echo " " $@ | $FMT
if ! ask_yn "Should packages be installed?" Yn 30; then
return 42
@@ -959,7 +961,9 @@ pkg_remove() {
# usage: TITEL='remove foobar' pkg_remove foopkg barpkg
rst_title "${TITLE:-remove packages}" section
- echo -en "\npackage(s)::\n\n $*\n" | $FMT
+ echo -e "\npackage(s)::\n"
+ # shellcheck disable=SC2068
+ echo " " $@ | $FMT
if ! ask_yn "Should packages be removed (purge)?" Yn 30; then
return 42