Description: Patch from unmerged Pull Request #920 that allows rebuilding the
    timezone databases in Linux.
Forwarded: https://github.com/moment/moment-timezone/pull/920
Author: Amit Mittal <amit.mittal@iongroup.com>
Updated: Wed Dec 23 17:27:22 2020 +0530Author: Amit Mittal

--- a/tasks/data-zdump.js
+++ b/tasks/data-zdump.js
@@ -35,7 +35,14 @@
 			execFile('zdump', ['-v', src], { maxBuffer: 20*1024*1024 }, function (err, stdout) {
 				if (err) { throw err; }
 
-				if (stdout.length === 0) {
+				let output = normalizePaths(stdout);
+				let lines = output.split('\n');
+				let validOutput = lines.some(function (line) {
+					var parts = line.split(/\s+/);
+					return parts.length > 13;
+				});
+
+				if (!validOutput) {
 					// on some systems, when there are no transitions then we have
 					// to get creative to learn the offset and abbreviation
 					execFile('zdump', ['UTC', src], { maxBuffer: 20*1024*1024 }, function (_err, _stdout) {
