Skip to content

Commit df6b0db

Browse files
committed
fix: default settings would hang at random times
1 parent 3dc0906 commit df6b0db

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/playbook/Configuration/atlas/default.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ actions:
55
- !writeStatus: {status: 'Applying default Atlas Folder settings'}
66
- !cmd:
77
command: 'reg import .\DEFAULT.reg'
8+
onUpgrade: true
89
exeDir: true
910
wait: true
1011
runas: currentUserElevated

src/playbook/Executables/DEFAULT.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $pattern = "\(default\)\.cmd"
99
foreach ($script in $folderItems)
1010
{
1111
if ($script.PSChildName -match $pattern){
12-
& $script.FullName /silent
12+
Start-Process -FilePath $script.FullName -ArgumentList "/silent" -Wait
1313
Write-Host $script.PSChildName
1414
}
1515
}

0 commit comments

Comments
 (0)