mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
shfmt: Reformat shell scripts with shfmt.
https://github.com/mvdan/sh Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
caa939d2d5
commit
dfaea9df65
@@ -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' "$@"
|
||||
|
||||
Reference in New Issue
Block a user