mirror of
				https://github.com/go-task/task.git
				synced 2025-10-30 23:58:01 +02:00 
			
		
		
		
	fix(remote): TASK_REMOTE_DIR does not work when absolute (#1715)
This commit is contained in:
		
							
								
								
									
										4
									
								
								setup.go
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								setup.go
									
									
									
									
									
								
							| @@ -134,8 +134,8 @@ func (e *Executor) setupTempDir() error { | ||||
| 	} | ||||
|  | ||||
| 	if os.Getenv("TASK_REMOTE_DIR") != "" { | ||||
| 		if filepath.IsAbs(os.Getenv("TASK_TEMP_DIR")) || strings.HasPrefix(os.Getenv("TASK_TEMP_DIR"), "~") { | ||||
| 			remoteTempDir, err := execext.Expand(filepathext.SmartJoin(e.Dir, ".task")) | ||||
| 		if filepath.IsAbs(os.Getenv("TASK_REMOTE_DIR")) || strings.HasPrefix(os.Getenv("TASK_REMOTE_DIR"), "~") { | ||||
| 			remoteTempDir, err := execext.Expand(os.Getenv("TASK_REMOTE_DIR")) | ||||
| 			if err != nil { | ||||
| 				return err | ||||
| 			} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user