mirror of https://github.com/zulip/zulip.git
create-zulip-admin: Fix shellcheck warnings.
In scripts/lib/create-zulip-admin line 3: if ([ "$ZULIP_USER_CREATION_ENABLED" == "True" ] || [ "$ZULIP_USER_CREATION_ENABLED" == "true" ]) && \ ^-- SC2235: Use { ..; } instead of (..) to avoid subshell overhead. In scripts/lib/create-zulip-admin line 4: ([ -z "$ZULIP_USER_DOMAIN" ] || \ ^-- SC2235: Use { ..; } instead of (..) to avoid subshell overhead. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
parent
5b4d30abab
commit
7162ac43a6
|
@ -1,10 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if ([ "$ZULIP_USER_CREATION_ENABLED" == "True" ] || [ "$ZULIP_USER_CREATION_ENABLED" == "true" ]) && \
|
if { [ "$ZULIP_USER_CREATION_ENABLED" == "True" ] || [ "$ZULIP_USER_CREATION_ENABLED" == "true" ]; } && \
|
||||||
([ -z "$ZULIP_USER_DOMAIN" ] || \
|
{ [ -z "$ZULIP_USER_DOMAIN" ] || \
|
||||||
[ -z "$ZULIP_USER_EMAIL" ] || \
|
[ -z "$ZULIP_USER_EMAIL" ] || \
|
||||||
[ -z "$ZULIP_USER_FULLNAME" ] || \
|
[ -z "$ZULIP_USER_FULLNAME" ] || \
|
||||||
[ -z "$ZULIP_USER_PASS" ]); then
|
[ -z "$ZULIP_USER_PASS" ]; }; then
|
||||||
echo "No zulip user configuration given."
|
echo "No zulip user configuration given."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue