Fix condition in snapshot script. Argv is never 2 long, it can be 3 or 4.

This commit is contained in:
Graydon Hoare 2011-12-06 17:50:21 -08:00
parent a1b215aea1
commit 1652b921fa

View File

@ -2,7 +2,7 @@
import snapshot, sys
if len(sys.argv) == 2:
if len(sys.argv) == 3:
print(snapshot.make_snapshot(sys.argv[1], sys.argv[2], ""))
else:
print(snapshot.make_snapshot(sys.argv[1], sys.argv[2], sys.argv[3]))