Skip to content

Commit

Permalink
power: quote in string triggered shellcheck SC2016
Browse files Browse the repository at this point in the history
  • Loading branch information
gnammix committed Jan 4, 2025
1 parent 3feaf37 commit 89be82c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/system/checks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
printf >&2 "\e[1;31merror: restarting after power failure is not supported on your machine\e[0m\n" >&2
printf >&2 "Please ensure that \`power.restartAfterPowerFailure\` is not set.\n" >&2
exit 2
fi
'';
Expand Down

0 comments on commit 89be82c

Please sign in to comment.