shfmt: Reformat shell scripts with shfmt.

https://github.com/mvdan/sh

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-10-14 19:55:57 -07:00
committed by Tim Abbott
parent caa939d2d5
commit dfaea9df65
55 changed files with 609 additions and 473 deletions

View File

@@ -8,18 +8,20 @@ TEMP=$(getopt -o f --long force -- "$@")
eval set -- "$TEMP"
# extract options.
while true ; do
while true; do
case "$1" in
-f|--force)
FORCEARG="--force";
shift;;
-f | --force)
FORCEARG="--force"
shift
;;
--)
shift;
break;;
shift
break
;;
esac
done
function run {
function run() {
echo '----'
printf 'Running'
printf ' %q' "$@"