From a457d05308e0ecee2d2981c6a9910fae7be5a0a5 Mon Sep 17 00:00:00 2001 From: maynardminer Date: Wed, 22 Jan 2020 21:09:18 -0500 Subject: [PATCH] #303 get parameters json --- build/powershell/scripts/get.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/powershell/scripts/get.ps1 b/build/powershell/scripts/get.ps1 index 5a3539687..5212f3888 100755 --- a/build/powershell/scripts/get.ps1 +++ b/build/powershell/scripts/get.ps1 @@ -647,7 +647,11 @@ https://github.com/MaynardMiner/SWARM/wiki/HiveOS-management } else { $SwarmParameters += "No Parameters For SWARM found" } if($argument2 -eq "json") { - $Get += $SwarmParameters | ConvertTo-Json -Depth 5 -Compress + if($argument3 -eq "decompress") { + $Get += $MinerArgs | ConvertTo-Json -Depth 5 + } else { + $Get += $MinerArgs | Convertto-Json -Depth 5 -Compress + } } else { $Get += $SwarmParameters