use local variables!
This commit is contained in:
		
							parent
							
								
									eec87784de
								
							
						
					
					
						commit
						3a6e75776d
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		|  | @ -12,7 +12,7 @@ if not fs.exists(temp) then | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
| if #args > 0 then | if #args > 0 then | ||||||
|     programToInstall = args[1] |     local programToInstall = args[1] | ||||||
| else | else | ||||||
|     print("usage:") |     print("usage:") | ||||||
|     print("install.lua <project>") |     print("install.lua <project>") | ||||||
|  | @ -20,7 +20,7 @@ else | ||||||
| end | end | ||||||
| if #args > 1 then | if #args > 1 then | ||||||
|     print("WARNING: custom paths are currently not supported.") |     print("WARNING: custom paths are currently not supported.") | ||||||
|     customPath = shell.resolve(args[2]) |     local customPath = shell.resolve(args[2]) | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
| local function downloadFile(program, filename) | local function downloadFile(program, filename) | ||||||
|  |  | ||||||
|  | @ -12,11 +12,11 @@ if not fs.exists(temp) then | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
| if #args > 0 then | if #args > 0 then | ||||||
|     programToInstall = args[1] |     local programToInstall = args[1] | ||||||
| end | end | ||||||
| if #args > 1 then | if #args > 1 then | ||||||
|     print("WARNING: custom paths are currently not supported.") |     print("WARNING: custom paths are currently not supported.") | ||||||
|     customPath = shell.resolve(args[2]) |     local customPath = shell.resolve(args[2]) | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
| local function downloadFile(program, filename) | local function downloadFile(program, filename) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue