update: 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
9c5a04ba47
commit
23981d7096
56
update
56
update
|
@ -69,34 +69,34 @@ mode="${1}"
|
||||||
[ "${mode}" = help ] && help && exit 0
|
[ "${mode}" = help ] && help && exit 0
|
||||||
|
|
||||||
if [ $# -gt 1 ]; then
|
if [ $# -gt 1 ]; then
|
||||||
|
option="${2}"
|
||||||
|
shift 2
|
||||||
|
|
||||||
option="${2}"
|
case "${option}" in
|
||||||
shift 2
|
list)
|
||||||
|
printf "Available options for mode '%s':\n\n" "${mode}"
|
||||||
case "${option}" in
|
listoptions "${mode}"
|
||||||
list)
|
;;
|
||||||
printf "Available options for mode '%s':\n\n" "${mode}"
|
all)
|
||||||
listoptions "${mode}"
|
for option in $(listoptions "${mode}"); do
|
||||||
;;
|
"${update}"/"${mode}"/"${option}" $@
|
||||||
all)
|
done
|
||||||
for option in $(listoptions "${mode}"); do
|
;;
|
||||||
"${update}"/"${mode}"/"${option}" $@
|
*)
|
||||||
done
|
if [ -d "${update}"/"${mode}"/ ]; then
|
||||||
;;
|
if [ -f "${update}"/"${mode}"/"${option}" ]; then
|
||||||
*)
|
"${update}"/"${mode}"/"${option}" $@
|
||||||
if [ -d "${update}"/"${mode}"/ ]; then
|
else
|
||||||
if [ -f "${update}"/"${mode}"/"${option}" ]; then
|
help
|
||||||
"${update}"/"${mode}"/"${option}" $@
|
die "Invalid option for '${mode}'." \
|
||||||
else
|
" See './update ${mode} list'."
|
||||||
help
|
fi
|
||||||
die "Invalid option for '${mode}'. See './update ${mode} list'."
|
else
|
||||||
fi
|
help
|
||||||
else
|
die "Invalid mode '${mode}'. See './update help'."
|
||||||
help
|
fi
|
||||||
die "Invalid mode '${mode}'. See './update help'."
|
esac
|
||||||
fi
|
|
||||||
esac
|
|
||||||
else
|
else
|
||||||
help
|
help
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue