From 5e5d35904991a7a53b294bb9bf1741d7124d1bb3 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Tue, 19 Oct 2021 09:27:10 +0200 Subject: [PATCH] Update check-drive-space.ps1 and check-swap-space.ps1 --- Scripts/check-drive-space.ps1 | 2 +- Scripts/check-swap-space.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/check-drive-space.ps1 b/Scripts/check-drive-space.ps1 index 450a8780..ee0a8216 100755 --- a/Scripts/check-drive-space.ps1 +++ b/Scripts/check-drive-space.ps1 @@ -30,7 +30,7 @@ try { write-warning "Drive $Drive has only $Free GB left to use! ($Used of $Total GB used, minimum is $MinLevel GB)" exit 1 } - "✔️ $Free GB left on drive $Drive ($Used of $Total GB used)" + "✔️ Drive $Drive has $Free GB left ($Used of $Total GB used)" exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" diff --git a/Scripts/check-swap-space.ps1 b/Scripts/check-swap-space.ps1 index a4d41790..ebdbd1ff 100755 --- a/Scripts/check-swap-space.ps1 +++ b/Scripts/check-swap-space.ps1 @@ -39,7 +39,7 @@ try { write-warning "Swap space has only $Free GB left to use! ($Used of $Total GB used, minimum is $MinLevel GB)" exit 1 } - "✔️ $Free GB left for swap space ($Used of $Total GB used)" + "✔️ Swap space has $Free GB left ($Used of $Total GB used)" exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"