Skip to content

Commit b8ccb19

Browse files
committed
Resolve full path for internal processing
Some .NET APIs won't handle relative paths correctly as they cannot figure out the current context like PS cmdlets do
1 parent 6cd96c0 commit b8ccb19

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Slack.Backup/Public/Invoke-BackupJob.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ function Invoke-BackupJob {
1717

1818
process {
1919
Write-Verbose "Cmdlet Invoke-BackupJob - Process"
20+
Assert-Path $Location
21+
$Location = Resolve-Path -LiteralPath $Location | Select-Object -ExpandProperty Path
2022
if ($Files) {
2123
Invoke-FilesBackup -Token $Token -Location $Location
2224
}

0 commit comments

Comments
 (0)