mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 20:13:46 +00:00 
			
		
		
		
	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>
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			446 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			446 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env bash
 | |
| set -e
 | |
| 
 | |
| cd "$(dirname "$0")"/../..
 | |
| 
 | |
| email=iago@zulip.com
 | |
| 
 | |
| mkdir -p var/casper
 | |
| 
 | |
| 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'}};
 | |
| try { exports.test_credentials = test_credentials; } catch (e) {}
 | |
| EOF
 |