From 9c5a04ba47ffc884800980e18150b7fbe2d5ab3d Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Mon, 27 Nov 2023 00:27:27 +0100 Subject: [PATCH] modify: whitespace and line length cleanups. This should contain no functional modifications. Signed-off-by: Denis 'GNUtoo' Carikli Acked-by: Adrien 'neox' Bourmault --- modify | 55 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 28 insertions(+), 27 deletions(-) diff --git a/modify b/modify index dbfd19c..69ab808 100755 --- a/modify +++ b/modify @@ -70,33 +70,34 @@ mode="${1}" if [ $# -gt 1 ]; then - option="${2}" - shift 2 + option="${2}" + shift 2 - case "${option}" in - list) - printf "Available options for mode '%s':\n\n" "${mode}" - listoptions "${mode}" - ;; - all) - for option in $(listoptions "${mode}"); do - "${modify}"/"${mode}"/"${option}" $@ - done - ;; - *) - if [ -d "${modify}"/"${mode}"/ ]; then - if [ -f "${modify}"/"${mode}"/"${option}" ]; then - "${modify}"/"${mode}"/"${option}" $@ - else - help - die "Invalid option for '${mode}'. See './modify ${mode} list'." - fi - else - help - die "Invalid mode '${mode}'. See './modify help'." - fi - esac + case "${option}" in + list) + printf "Available options for mode '%s':\n\n" "${mode}" + listoptions "${mode}" + ;; + all) + for option in $(listoptions "${mode}"); do + "${modify}"/"${mode}"/"${option}" $@ + done + ;; + *) + if [ -d "${modify}"/"${mode}"/ ]; then + if [ -f "${modify}"/"${mode}"/"${option}" ]; then + "${modify}"/"${mode}"/"${option}" $@ + else + help + die "Invalid option for '${mode}'." \ + " See './modify ${mode} list'." + fi + else + help + die "Invalid mode '${mode}'. See './modify help'." + fi + esac else - help - exit 0 + help + exit 0 fi