Skip to content

Commit a464e5b

Browse files
authored
Merge pull request #1251 from gnammix/power_shellcheck_SC2016
power: quote in string triggered shellcheck SC2016
2 parents 3feaf37 + 89be82c commit a464e5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/system/checks.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ let
312312
# some mac devices, notably notebook do not support restartAfterPowerFailure option
313313
restartAfterPowerFailureIsSupported = ''
314314
if sudo /usr/sbin/systemsetup -getRestartPowerFailure | grep -q "Not supported"; then
315-
printf >&2 "[1;31merror: restarting after power failure is not supported on your machine[0m\n" >&2
316-
printf >&2 "Please ensure that `power.restartAfterPowerFailure` is not set.\n" >&2
315+
printf >&2 "\e[1;31merror: restarting after power failure is not supported on your machine\e[0m\n" >&2
316+
printf >&2 "Please ensure that \`power.restartAfterPowerFailure\` is not set.\n" >&2
317317
exit 2
318318
fi
319319
'';

0 commit comments

Comments
 (0)