diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2024-01-16 15:37:07 +0000 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2024-01-16 15:37:07 +0000 |
commit | a1e00b4e28d56365b4b5cc4aa44185c4b53f5c33 (patch) | |
tree | d733e3560e2734d7bfdd4c92df6ad3736e3a1e0b /tools | |
parent | 5a8337933df1cf3aba967d86549e236dd9173386 (diff) | |
download | unit-a1e00b4e28d56365b4b5cc4aa44185c4b53f5c33.tar.gz unit-a1e00b4e28d56365b4b5cc4aa44185c4b53f5c33.tar.bz2 |
White space formatting fixes
Closes: <https://github.com/nginx/unit/pull/1062>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/setup-unit | 10 | ||||
-rwxr-xr-x | tools/unitc | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/tools/setup-unit b/tools/setup-unit index 38592fe3..f40a767c 100755 --- a/tools/setup-unit +++ b/tools/setup-unit @@ -77,9 +77,9 @@ SYNOPSIS Subcommands ├── cmd [-h] ├── ctl [-h] [-s SOCK] SUBCOMMAND [ARGS] - │ ├── edit [-h] PATH - │ ├── http [-h] [-c CURLOPT] METHOD PATH - │ └── insert [-h] PATH INDEX + │ ├── edit [-h] PATH + │ ├── http [-h] [-c CURLOPT] METHOD PATH + │ └── insert [-h] PATH INDEX ├── freeport [-h] ├── json-ins [-hn] JSON INDEX ├── os-probe [-h] @@ -87,8 +87,8 @@ SYNOPSIS ├── repo-config [-hn] [PKG-MANAGER OS-NAME OS-VERSION] ├── restart [-hls] ├── sock [-h] SUBCOMMAND [ARGS] - │ ├── filter [-chs] - │ └── find [-h] + │ ├── filter [-chs] + │ └── find [-h] └── welcome [-hn] DESCRIPTION diff --git a/tools/unitc b/tools/unitc index 4ab5f663..22417266 100755 --- a/tools/unitc +++ b/tools/unitc @@ -1,6 +1,6 @@ #!/bin/bash # unitc - a curl wrapper for configuring NGINX Unit -# https://github.com/nginx/unit/tree/master/tools +# https://github.com/nginx/unit/tree/master/tools # NGINX, Inc. (c) 2023 # Defaults @@ -292,7 +292,7 @@ else exit 1 fi NEW_ELEMENT=$(cat ${CONF_FILES[@]}) - echo $NEW_ELEMENT | jq > /dev/null || exit $? # Test the input is valid JSON before proceeding + echo $NEW_ELEMENT | jq > /dev/null || exit $? # Test the input is valid JSON before proceeding OLD_ARRAY=$($RPC_CMD curl -s $UNIT_CTRL$URI) if [ "$(echo $OLD_ARRAY | jq -r type)" = "array" ]; then echo $OLD_ARRAY | jq ". |= [$NEW_ELEMENT] + ." | $RPC_CMD curl -X PUT --data-binary @- $UNIT_CTRL$URI 2> /tmp/${0##*/}.$$ | $OUTPUT |