From b04749990651c2338e1ed0b69e3d5042ecfbc02f Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Mon, 25 Dec 2023 02:39:45 +0000 Subject: [PATCH] Removes error --- home/.chezmoiscripts/universal/run_before_05-system.sh.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/home/.chezmoiscripts/universal/run_before_05-system.sh.tmpl b/home/.chezmoiscripts/universal/run_before_05-system.sh.tmpl index a76c35e5..ce9f32f1 100644 --- a/home/.chezmoiscripts/universal/run_before_05-system.sh.tmpl +++ b/home/.chezmoiscripts/universal/run_before_05-system.sh.tmpl @@ -581,11 +581,11 @@ setTimezone() { ### Linux logg info 'Setting timezone to {{ .user.timezone }}' sudo timedatectl set-timezone {{ .user.timezone }} - elif command -v m > /dev/null; then + elif command -v systemsetup > /dev/null && [ -d /Applications ] && [ -d /System ]; then ### macOS - logg info 'Setting timezone to {{ .user.timezone }}' && m timezone set {{ .user.timezone }} + logg info 'Setting timezone to {{ .user.timezone }}' && sudo systemsetup -settimezone "{{ .user.timezone }}" 2>/dev/null 1>&2 else - logg warn 'Neither timedatectl (Linux) or m (macOS) were found on the system' + logg warn 'Neither timedatectl (Linux) or systemsetup (macOS) were found on the system' fi }