mirror of https://github.com/zulip/zulip.git
generate-test-credentials: Fix shellcheck warnings.
In tools/setup/generate-test-credentials line 10: password=$(./manage.py print_initial_password "$email" | fgrep "$email" | awk '{ print $2 }') ^-- SC2197: fgrep is non-standard and deprecated. Use grep -F instead. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
parent
af64bff9d4
commit
f4c4e857ff
|
@ -7,7 +7,7 @@ email=iago@zulip.com
|
|||
|
||||
mkdir -p var/casper
|
||||
|
||||
password=$(./manage.py print_initial_password "$email" | fgrep "$email" | awk '{ print $2 }')
|
||||
password=$(./manage.py print_initial_password "$email" | grep -F "$email" | awk '{ print $2 }')
|
||||
cat > var/casper/test_credentials.js <<EOF
|
||||
// Generated by tools/setup/generate-test-credentials
|
||||
var test_credentials = {default_user: {username: '$email', password: '$password'}};
|
||||
|
|
Loading…
Reference in New Issue