mirror of
				https://github.com/sammy-ette/Hilbish
				synced 2025-08-10 02:52:03 +00:00 
			
		
		
		
	fix(cd): make it return 1 exit code on err
This commit is contained in:
		
							parent
							
								
									630d7dde9c
								
							
						
					
					
						commit
						a140db1610
					
				| @ -20,8 +20,8 @@ commander.register('cd', function (args) | ||||
| 			if err == 1 then | ||||
| 				print('directory does not exist') | ||||
| 			end | ||||
| 			bait.throw('command.exit', err) | ||||
| 		else bait.throw('command.exit', 0) end | ||||
| 			return 1 | ||||
| 		end | ||||
| 		return | ||||
| 	end | ||||
| 	fs.cd(os.getenv 'HOME') | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user