Fix upload script when there's no password

If there's no password passed in via the command line but `--force` is
used, the script assumes that "`--force`" is the password.
This commit is contained in:
APerson 2014-11-27 22:39:39 -05:00
parent 87bfca1b71
commit 30fc3eb3d1

View File

@ -50,6 +50,7 @@ command = 'grunt build'
if '--force' in sys.argv:
print 'Forcing grunt build with --force...'
command += ' --force'
sys.argv.remove('--force')
try:
process = subprocess.Popen(command.split(), stdout=subprocess.PIPE)