mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-06 08:47:00 +00:00
Merge pull request #1251 from gnammix/power_shellcheck_SC2016
power: quote in string triggered shellcheck SC2016
This commit is contained in:
commit
a464e5ba8c
1 changed files with 2 additions and 2 deletions
|
@ -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 "<EFBFBD>[1;31merror: restarting after power failure is not supported on your machine<EFBFBD>[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
|
||||
'';
|
||||
|
|
Loading…
Add table
Reference in a new issue