mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-05-04 08:41:36 +00:00
Add tab replacment to formatjson.ps1
This commit is contained in:
@@ -21,6 +21,11 @@ if ($type -is [System.IO.DirectoryInfo]) {
|
||||
}
|
||||
|
||||
$files | % {
|
||||
# beautify
|
||||
$json = parse_json "$dir$_" | ConvertToPrettyJson
|
||||
|
||||
# convert to 4 spaces
|
||||
$json = $json -replace "`t",' '
|
||||
|
||||
[System.IO.File]::WriteAllLines("$dir$_", $json)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user