Commit 1652b921 authored by Graydon Hoare's avatar Graydon Hoare

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

parent a1b215ae
......@@ -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]))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment