modify: whitespace and line length cleanups.
This should contain no functional modifications. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> Acked-by: Adrien 'neox' Bourmault <neox@gnu.org>
This commit is contained in:
parent
ec100eee05
commit
9c5a04ba47
55
modify
55
modify
|
@ -70,33 +70,34 @@ mode="${1}"
|
||||||
|
|
||||||
if [ $# -gt 1 ]; then
|
if [ $# -gt 1 ]; then
|
||||||
|
|
||||||
option="${2}"
|
option="${2}"
|
||||||
shift 2
|
shift 2
|
||||||
|
|
||||||
case "${option}" in
|
case "${option}" in
|
||||||
list)
|
list)
|
||||||
printf "Available options for mode '%s':\n\n" "${mode}"
|
printf "Available options for mode '%s':\n\n" "${mode}"
|
||||||
listoptions "${mode}"
|
listoptions "${mode}"
|
||||||
;;
|
;;
|
||||||
all)
|
all)
|
||||||
for option in $(listoptions "${mode}"); do
|
for option in $(listoptions "${mode}"); do
|
||||||
"${modify}"/"${mode}"/"${option}" $@
|
"${modify}"/"${mode}"/"${option}" $@
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
if [ -d "${modify}"/"${mode}"/ ]; then
|
if [ -d "${modify}"/"${mode}"/ ]; then
|
||||||
if [ -f "${modify}"/"${mode}"/"${option}" ]; then
|
if [ -f "${modify}"/"${mode}"/"${option}" ]; then
|
||||||
"${modify}"/"${mode}"/"${option}" $@
|
"${modify}"/"${mode}"/"${option}" $@
|
||||||
else
|
else
|
||||||
help
|
help
|
||||||
die "Invalid option for '${mode}'. See './modify ${mode} list'."
|
die "Invalid option for '${mode}'." \
|
||||||
fi
|
" See './modify ${mode} list'."
|
||||||
else
|
fi
|
||||||
help
|
else
|
||||||
die "Invalid mode '${mode}'. See './modify help'."
|
help
|
||||||
fi
|
die "Invalid mode '${mode}'. See './modify help'."
|
||||||
esac
|
fi
|
||||||
|
esac
|
||||||
else
|
else
|
||||||
help
|
help
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue