From c9b194409dfe1124e9a8155ba10e46f3c8ee7110 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Mon, 27 Nov 2023 02:10:54 +0100 Subject: [PATCH] update: rename mode(s) to package(s). Most GNU Boot users are interested in running GNU/Linux or BSD operating systems. And the way to install software on these operating systems is through a package manager. So most users and contributors already know the package manager abstraction. So referring to packages instead of options makes it easier to understand what the script is doing. Signed-off-by: Denis 'GNUtoo' Carikli Acked-by: Adrien 'neox' Bourmault --- update | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/update b/update index d9460d6..56454bf 100755 --- a/update +++ b/update @@ -28,13 +28,13 @@ projectname="$(cat projectname)" update=./resources/scripts/update -listmodes() { - for mode in "${update}"/*; do - printf '%s\n' "${mode##*/}" +list_packages() { + for package in "${update}"/*; do + printf '%s\n' "${package##*/}" done } -# Takes exactly one mode as parameter +# Takes exactly one package as parameter listoptions() { for option in "${update}"/"${1}"/*; do printf '%s\n' "${option##*/}" @@ -43,10 +43,10 @@ listoptions() { help() { cat <<- EOF - USAGE: ./update