From b6123f287a6d932a20fb317c31c039335f3f00cb Mon Sep 17 00:00:00 2001 From: reubenmiller Date: Mon, 12 Apr 2021 20:13:14 +0000 Subject: [PATCH] setting c8y alias before it is referenced in PSc8y module --- tools/PSc8y/tools/modulefile/PartTwo.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/PSc8y/tools/modulefile/PartTwo.ps1 b/tools/PSc8y/tools/modulefile/PartTwo.ps1 index 013614c91..c62b7dabd 100644 --- a/tools/PSc8y/tools/modulefile/PartTwo.ps1 +++ b/tools/PSc8y/tools/modulefile/PartTwo.ps1 @@ -1,5 +1,9 @@ #region imports + +# Add alias to c8y binary +Set-Alias -Name "c8y" -Value (Get-ClientBinary) -Scope "Global" + # # Create session folder # @@ -22,9 +26,6 @@ if ($script:IsLinux -or $script:IsMacOS) { } } -# Add alias to c8y binary -Set-Alias -Name "c8y" -Value (Get-ClientBinary) -Scope "Global" - # Load c8y completions for powershell c8y completion powershell | Out-String | Invoke-Expression