mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-11-14 23:23:50 +00:00
bugfix: use $tmp dir if no destination provided
This commit is contained in:
parent
7378dacaa5
commit
7d8872d70d
@ -126,6 +126,12 @@ function ProcessUrlFiles
|
|||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Use $tmpApp as destination in case of git repo
|
||||||
|
if (-not $destinationDir)
|
||||||
|
{ $destinationPath = "$tmpApp\$fileName"
|
||||||
|
}
|
||||||
|
|
||||||
# If the URL is a git repository, pull it
|
# If the URL is a git repository, pull it
|
||||||
if (IsGitRepository -dir $destinationPath -url $url)
|
if (IsGitRepository -dir $destinationPath -url $url)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user