mirror of
				https://github.com/filiprojek/nork.git
				synced 2025-02-20 01:22:58 +01:00 
			
		
		
		
	bug fix
This commit is contained in:
		@@ -157,8 +157,8 @@ const logHelp = (specific = false, command = false) => {
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if (component == 'model') {
 | 
			
		||||
			let src = path.join(__dirname, './make-files/express-' + norkcfg.lang + '/' + component + '.js')
 | 
			
		||||
			let dest = path.join(process.cwd(), './src/' + component + 's' + '/' + process.argv[4] + '.js')
 | 
			
		||||
			let src = path.join(__dirname, './make-files/express-' + norkcfg.lang + '/' + component + '.' + norkcfg.lang)
 | 
			
		||||
			let dest = path.join(process.cwd(), './src/' + component + 's' + '/' + process.argv[4] + '.' + norkcfg.lang)
 | 
			
		||||
 | 
			
		||||
			try {
 | 
			
		||||
				fs.copySync(src, dest, { overwrite: false, errorOnExist: true })
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user