Skip to content

Commit 5a98dbb

Browse files
committed
Fixed import issue when scaffold scripts are on portable drive
1 parent 851111b commit 5a98dbb

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/dirty-birds-dress.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@bluecadet/launchpad-scaffold": patch
3+
---
4+
5+
Fixes scaffold issue when running on portable drives

packages/scaffold/scripts/windows/disable_update_service.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
try {
22
Get-Variable $PSScriptRoot -Scope Global -ErrorAction 'Stop'
3-
Import-Module -DisableNameChecking $PSScriptRoot/functions.psm1;
3+
Import-Module -DisableNameChecking $PSScriptRoot/scripts/functions.psm1;
44
} catch [System.Management.Automation.ItemNotFoundException] {
5-
Import-Module -DisableNameChecking ../functions.psm1;
5+
Import-Module -DisableNameChecking $PSScriptRoot/../functions.psm1;
66
}
77

88
Write-Output "Disabling Windows Update Medic Service"

0 commit comments

Comments
 (0)