mirror of https://github.com/zulip/zulip.git
update-zuliprc-api-field: Add missing shell quoting.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
d751e0cece
commit
5a1104f1b8
|
@ -11,6 +11,7 @@ Usage:
|
||||||
import argparse
|
import argparse
|
||||||
import configparser
|
import configparser
|
||||||
import os
|
import os
|
||||||
|
import shlex
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -50,7 +51,7 @@ for zuliprc_path in zuliprc_paths_list:
|
||||||
|
|
||||||
if is_vagrant_env_host(ZULIP_PATH):
|
if is_vagrant_env_host(ZULIP_PATH):
|
||||||
arguments = ['vagrant', 'ssh', '--command',
|
arguments = ['vagrant', 'ssh', '--command',
|
||||||
'./manage.py print_initial_password ' + email]
|
'./manage.py print_initial_password ' + shlex.quote(email)]
|
||||||
else:
|
else:
|
||||||
# Support users who don't have vagrant based setup
|
# Support users who don't have vagrant based setup
|
||||||
arguments = ['./manage.py', 'print_initial_password', email]
|
arguments = ['./manage.py', 'print_initial_password', email]
|
||||||
|
|
Loading…
Reference in New Issue