diff options
| author | gnammix <71704832+gnammix@users.noreply.github.com> | 2024-12-31 14:38:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-31 14:38:42 +0100 |
| commit | 492a72007ae2e7bd5895458fcd72ac2c8c9a0dc4 (patch) | |
| tree | 0ac27551eb6e7eb2284954b7ba9ce54724a3d289 /modules | |
| parent | 62d8f5f289341497ea0fa21814e734cbea69a0a1 (diff) | |
power: echo to print in error messages
Co-authored-by: Michael Hoang <Enzime@users.noreply.github.com>
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/system/checks.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/system/checks.nix b/modules/system/checks.nix index e6ee1b3..91622e5 100644 --- a/modules/system/checks.nix +++ b/modules/system/checks.nix @@ -312,8 +312,8 @@ let # some mac devices, notably notebook do not support restartAfterPowerFailure option restartAfterPowerFailureIsSupported = '' if sudo /usr/sbin/systemsetup -getRestartPowerFailure | grep -q "Not supported"; then - echo "[1;31merror: Your system do not support the restartAfterPowerFailure feature[0m" >&2 - echo "Please ensure that power.restartAfterPowerFailure is not set." >&2 + printf >&2 "�[1;31merror: restarting after power failure is not supported on your machine�[0m\n" >&2 + printf >&2 "Please ensure that `power.restartAfterPowerFailure` is not set.\n" >&2 exit 2 fi ''; |
