mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
Merge pull request #1145 from qowoz/shellcheck-timezone
time: shellcheck fix
This commit is contained in:
commit
2f05a81019
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ let
|
||||||
cfg = config.time;
|
cfg = config.time;
|
||||||
|
|
||||||
timeZone = optionalString (cfg.timeZone != null) ''
|
timeZone = optionalString (cfg.timeZone != null) ''
|
||||||
if [ -z $(systemsetup -listtimezones | grep "^ ${cfg.timeZone}$") ]; then
|
if ! systemsetup -listtimezones | grep -q "^ ${cfg.timeZone}$"; then
|
||||||
echo "${cfg.timeZone} is not a valid timezone. The command 'listtimezones' will show a list of valid time zones." >&2
|
echo "${cfg.timeZone} is not a valid timezone. The command 'listtimezones' will show a list of valid time zones." >&2
|
||||||
false
|
false
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue