Bläddra i källkod

Sanity check -- we need at least 1 working source to do anything useful

Zachary Kotlarek 13 år sedan
förälder
incheckning
e319cbe365
1 ändrade filer med 5 tillägg och 0 borttagningar
  1. 5 0
      findTorrent.pl

+ 5 - 0
findTorrent.pl

@@ -135,6 +135,11 @@ if ($ENABLE_SOURCE{'ISO'}) {
 	}
 }
 
+# Sanity check
+if (scalar(keys(%SOURCES)) < 1) {
+	die("No sources available\n");
+}
+
 # Environment
 #if ($DEBUG) {
 #	print STDERR `printenv` . "\n";