local file upload fix
This commit is contained in:
		
							
								
								
									
										6
									
								
								sup
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								sup
									
									
									
									
									
								
							| @@ -142,14 +142,16 @@ main() { | ||||
| 	else | ||||
| 		target="${args[0]}"; [[ "$target" ]] || { sup.usage; exit 1; } | ||||
|  | ||||
| 		sup.if_url "$target" && { | ||||
| 		if sup.if_url "$target"; then | ||||
| 			file=`sup.mktemp "$cfg_tmp_dir"` | ||||
|  | ||||
| 			curl -s "$target" > "$file" || { | ||||
| 				sup.err "Could not download file." | ||||
| 				return 1 | ||||
| 			} | ||||
| 		} | ||||
| 		else | ||||
| 			file="$target" | ||||
| 		fi | ||||
| 	fi | ||||
|  | ||||
| 	sup.upload | ||||
|   | ||||
		Reference in New Issue
	
	Block a user