Quellcode durchsuchen

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

Zachary Kotlarek vor 13 Jahren
Ursprung
Commit
e319cbe365
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  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";