Skip to content

Commit 902073f

Browse files
committed
fix: minor script fixes
1 parent 26bd97a commit 902073f

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/playbook/Executables/AtlasDesktop/3. General Configuration/File Sharing/Disable File Sharing (default).cmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ reg add "HKLM\SOFTWARE\AtlasOS\Services\%settingName%" /v state /t REG_DWORD /d
2626
reg add "HKLM\SOFTWARE\AtlasOS\Services\%settingName%" /v path /t REG_SZ /d "%scriptPath%" /f > nul
2727

2828
powershell -EP Bypass -NoP -File "%script%"
29-
if "%~1"=="/silent" powershell -EP Bypass -NoP -File "%script%" -Silent
3029
if "%~1"=="/silent" exit /b
3130

31+
choice /c:yn /n /m "Finished, would you like to restart now to apply the changes? [Y/N] "
32+
if %ERRORLEVEL% == 1 shutdown /r /t 0
3233
echo Finished, File Sharing is now disabled.
3334
pause > nul
3435
exit /b

src/playbook/Executables/AtlasDesktop/3. General Configuration/File Sharing/Enable File Sharing.cmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ reg add "HKLM\SOFTWARE\AtlasOS\Services\%settingName%" /v state /t REG_DWORD /d
2626
reg add "HKLM\SOFTWARE\AtlasOS\Services\%settingName%" /v path /t REG_SZ /d "%scriptPath%" /f > nul
2727

2828
powershell -EP Bypass -NoP -File "%script%"
29-
if "%~1"=="/silent" powershell -EP Bypass -NoP -File "%script%" -Silent
3029
if "%~1"=="/silent" exit /b
3130

31+
choice /c:yn /n /m "Finished, would you like to restart now to apply the changes? [Y/N] "
32+
if %ERRORLEVEL% == 1 shutdown /r /t 0
3233
echo Finished, File Sharing is now enabled.
3334
pause > nul
3435
exit /b

src/playbook/Executables/AtlasDesktop/4. Interface Tweaks/Context Menus/Extract/Remove Extract (default).cmd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked
2727
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /v "{EE07CEF5-3441-4CFB-870A-4002C724783A}" /d "" /f > nul
2828
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /v "{D12E3394-DE4B-4777-93E9-DF0AC88F8584}" /d "" /f > nul
2929

30-
if "%~1" == "/justcontext" exit /b
3130
if "%~1"=="/silent" exit /b
3231

3332
echo Changes applied successfully.

src/playbook/Executables/AtlasModules/Scripts/ScriptWrappers/DisableFileSharing.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,4 @@ if ($Silent) { exit }
3636

3737
Write-Host "`nCompleted! " -ForegroundColor Green -NoNewLine
3838
Write-Host "You'll need to restart to apply the changes." -ForegroundColor Yellow
39-
$null = Read-Host "Press Enter to exit..."
4039
exit

src/playbook/Executables/AtlasModules/Scripts/ScriptWrappers/EnableFileSharing.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,4 @@ if ($LASTEXITCODE -eq 1) {
4747

4848
Write-Host "`nCompleted! " -ForegroundColor Green -NoNewLine
4949
Write-Host "You'll need to restart to apply the changes." -ForegroundColor Yellow
50-
$null = Read-Host "Press Enter to exit..."
5150
exit

src/playbook/Executables/DEFAULT.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ foreach ($script in $folderItems)
1212
& $script.FullName /silent
1313
Write-Host $script.PSChildName
1414
}
15-
}
15+
}
16+
exit 0

0 commit comments

Comments
 (0)