From c410023ea35aa1c3d30bec81b5301572d7db5d3b Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Mon, 27 Nov 2023 13:48:56 +0100 Subject: [PATCH] update: improve help. This commit corrects linelength (this should have no functional impact) and adds exit codes Signed-off-by: Denis 'GNUtoo' Carikli Acked-by: Adrien 'neox' Bourmault neox: wrote the commit message --- update | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/update b/update index 8328d08..5b983e5 100755 --- a/update +++ b/update @@ -26,6 +26,8 @@ set -u -e projectname="$(cat projectname)" ./resources/scripts/misc/versioncheck +. resources/scripts/misc/sysexits.sh + list_packages() { ls -d resources/packages/*/update/ | \ sed 's#resources/packages/##' | \ @@ -41,7 +43,9 @@ listoptions() { help() { cat <<- EOF - USAGE: ./update