Skip to content

Commit ad5ef8d

Browse files
committed
status.py: fail fast if run from the wrong machine
1 parent 8bdf7ec commit ad5ef8d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

status.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ def process(patterns=[]):
6565
a = "pom-scijava"
6666
psj = maven.MavenComponent(g, a)
6767

68+
if not psj.release and not psj.snapshot and not psj.pom:
69+
return None
70+
6871
records = []
6972

7073
if matches(g, a, patterns):
@@ -82,4 +85,7 @@ def process(patterns=[]):
8285

8386
if __name__ == '__main__':
8487
result = process(sys.argv[1:])
85-
print(json.dumps(result, sort_keys=True, indent=4))
88+
if result:
89+
print(json.dumps(result, sort_keys=True, indent=4))
90+
else:
91+
print("This script must be run from the SciJava Maven server.")

0 commit comments

Comments
 (0)