[upload.py] Combined a couple of print statements

Just a minor UX issue; the first print statement was actually inaccurate when using --force.
This commit is contained in:
APerson 2015-02-26 20:58:30 -05:00
parent bb0fef0f84
commit 46602cdcfe

View File

@ -43,15 +43,15 @@ if len(sys.argv) < 4:
wiki = sys.argv[1]
# First, create a build
print 'Building afch-rewrite using `grunt build`...'
command = 'grunt build'
# Should we use --force on grunt build?
if '--force' in sys.argv:
print 'Forcing grunt build with --force...'
command += ' --force'
sys.argv.remove('--force')
print 'Building afch-rewrite using `{}`...'.format(command)
try:
process = subprocess.Popen(command.split(), stdout=subprocess.PIPE)
output = process.communicate()[0]