Fix condition in snapshot script. Argv is never 2 long, it can be 3 or 4.
This commit is contained in:
parent
a1b215aea1
commit
1652b921fa
@ -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]))
|
||||
|
Loading…
Reference in New Issue
Block a user