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:
Anders Kaseorg 2018-08-03 00:14:50 +00:00 committed by Tim Abbott
parent af64bff9d4
commit f4c4e857ff
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ email=iago@zulip.com
mkdir -p var/casper 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 cat > var/casper/test_credentials.js <<EOF
// Generated by tools/setup/generate-test-credentials // Generated by tools/setup/generate-test-credentials
var test_credentials = {default_user: {username: '$email', password: '$password'}}; var test_credentials = {default_user: {username: '$email', password: '$password'}};