From a945fa8e150f26854a91cee1e2879465bd145bee Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Mon, 27 Nov 2023 13:46:08 +0100 Subject: [PATCH] modify: 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 --- modify | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/modify b/modify index ebfba1f..5c3ae00 100755 --- a/modify +++ b/modify @@ -24,6 +24,9 @@ set -u -e projectname="$(cat projectname)" + +. resources/scripts/misc/sysexits.sh + ./resources/scripts/misc/versioncheck list_modify_paths() { @@ -33,6 +36,7 @@ list_modify_paths() { -name "modify" \ -printf "%P\n" } + list_packages() { list_modify_paths | \ sed 's#/.*##' @@ -49,7 +53,9 @@ listoptions() { help() { cat <<- EOF - USAGE: ./modify