Skip to content

Commit

Permalink
Merge pull request #411 from reubenmiller/fix-powershell-profile-mode
Browse files Browse the repository at this point in the history
fix(powershell): set-c8ymode was calling non existent source function
  • Loading branch information
reubenmiller authored Oct 23, 2024
2 parents 7871151 + afdaafa commit aa45b6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/cli/profile/scripts/plugin.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Enable dev mode (enables POST, PUT and DELETE commands)
[parameter(ValueFromRemainingArguments=$true)]
$Options
)
c8y settings update --shell auto mode $Mode $Options | source
c8y settings update --shell auto mode $Mode $Options | Out-String | Invoke-Expression
Write-Host "Enabled "$Mode" mode (temporarily)" -ForegroundColor Green
}

Expand Down
4 changes: 1 addition & 3 deletions tools/shell/c8y.plugin.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ Enable dev mode (enables POST, PUT and DELETE commands)
[parameter(ValueFromRemainingArguments=$true)]
$Options
)
c8y settings update --shell auto mode $Mode $Options | source
c8y settings update --shell auto mode $Mode $Options | Out-String | Invoke-Expression
Write-Host "Enabled "$Mode" mode (temporarily)" -ForegroundColor Green
}

# Function source { $input | Out-String | Invoke-Expression }

0 comments on commit aa45b6a

Please sign in to comment.