mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-11-04 10:11:03 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			319 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			319 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const fs = require("fs");
 | 
						|
 | 
						|
if (process.argv.length < 4) throw new Error("Missing source and target file arguments");
 | 
						|
 | 
						|
const sourceFile = fs.readFileSync(process.argv[2], 'utf8');
 | 
						|
const targetFile = fs.readFileSync(process.argv[3], 'utf8');
 | 
						|
 | 
						|
if (sourceFile !== targetFile) {
 | 
						|
    throw new Error("Files do not match");
 | 
						|
}
 |