mirror of
				https://github.com/easingthemes/ssh-deploy.git
				synced 2025-10-31 23:40:10 +08:00 
			
		
		
		
	fix: remove __dirname
This commit is contained in:
		
							parent
							
								
									d39592cf3a
								
							
						
					
					
						commit
						db3c3987da
					
				| @ -5,7 +5,7 @@ const { writeToFile } = require('./helpers'); | |||||||
| const KNOWN_HOSTS = 'known_hosts'; | const KNOWN_HOSTS = 'known_hosts'; | ||||||
| const getPrivateKeyPath = (filename = '') => { | const getPrivateKeyPath = (filename = '') => { | ||||||
|   const { HOME } = process.env; |   const { HOME } = process.env; | ||||||
|   const dir = join(HOME || __dirname, '.ssh'); |   const dir = join(HOME || '~', '.ssh'); | ||||||
|   const knownHostsPath = join(dir, KNOWN_HOSTS); |   const knownHostsPath = join(dir, KNOWN_HOSTS); | ||||||
|   return { |   return { | ||||||
|     dir, |     dir, | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Dragan Filipovic
						Dragan Filipovic