| 
									
										
										
										
											2016-05-30 03:40:07 +02:00
										 |  |  | import "typings-global"; | 
					
						
							|  |  |  | import * as plugins from "./npmci.plugins"; | 
					
						
							|  |  |  | export let bash = (commandArg) => { | 
					
						
							| 
									
										
										
										
											2016-05-30 03:43:15 +02:00
										 |  |  |     let exitCode = plugins.shelljs.exec( | 
					
						
							| 
									
										
										
										
											2016-05-30 03:40:07 +02:00
										 |  |  |         "bash -c \"source /usr/local/nvm/nvm.sh &&" + | 
					
						
							|  |  |  |         commandArg + | 
					
						
							|  |  |  |         "\"" | 
					
						
							| 
									
										
										
										
											2016-05-30 03:43:15 +02:00
										 |  |  |     ).code; | 
					
						
							|  |  |  |     if(exitCode !== 0){ | 
					
						
							|  |  |  |         process.exit(1); | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2016-05-30 03:40:07 +02:00
										 |  |  | } |