mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1568] [CLOSED] Fix PowerShell 5.1 command shown by UPDATE.bat #3538
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3538
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1568
Author: @BonifacioCalindoro
Created: 10/8/2026
Status: ❌ Closed
Base:
main← Head:patch-2📝 Commits (1)
ef89155Fix PowerShell 5.1 command shown by UPDATE.bat📊 Changes
1 file changed (+2 additions, -1 deletions)
View changed files
📝
UPDATE.bat(+2 -1)📄 Description
Fix PowerShell 5.1 compatibility of recovery instructions
UPDATE.batcurrently prints this command when a clone needs to be moved to the new repository history:This is valid in PowerShell 7, but not in Windows PowerShell 5.1. Windows 11 can still launch Windows PowerShell 5.1 by default, so users can encounter a parser error when copying the command from the script:
The
.batitself does not need to change its use of&&: the problematic&&is inside anechoand is intended to be copied and executed by the user in their shell.This change prints the two commands separately instead:
This works in both Windows PowerShell 5.1 and newer PowerShell versions, while also avoiding a shell-specific operator in instructions intended for manual execution.
No behavior of the update script itself is changed.
Fixes #1566
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.