Skip to content

Commit

Permalink
fix local external dedublication
Browse files Browse the repository at this point in the history
  • Loading branch information
IreNox committed Aug 12, 2024
1 parent 037c5be commit f098b44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/base/external.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ function External:new( url )
external_new.type = ExternalTypes.SVN
elseif url_protocol == "local" then
external_new.type = ExternalTypes.Local
external_new.url = string.sub( external_new.url, 9, -1 )
elseif url_protocol == "https" then
external_new.type = ExternalTypes.Custom
else
Expand Down Expand Up @@ -80,7 +79,8 @@ end

function External:export( additional_import_path )
if self.type == ExternalTypes.Local then
self.export_path = path.join( additional_import_path, self.url )
local url_path = string.sub( self.url, 9, -1 )
self.export_path = path.join( additional_import_path, url_path )
return
end

Expand Down

0 comments on commit f098b44

Please sign in to comment.