From 361b6d79df3026f50341b312ee99dc9571980d2d Mon Sep 17 00:00:00 2001 From: Anton Volnuhin Date: Tue, 30 May 2023 10:00:43 +0300 Subject: [PATCH] some more checks --- run_once_after_configure.fish | 5 +++-- run_onchange_before_install_main_deps.sh.tmpl | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/run_once_after_configure.fish b/run_once_after_configure.fish index 56152b0..0a3e92b 100755 --- a/run_once_after_configure.fish +++ b/run_once_after_configure.fish @@ -2,8 +2,9 @@ set Green '\033[0;32m' # Green set NC '\033[0m' # No Color - -sudo timedatectl set-timezone Europe/Moscow +{{ if eq .chezmoi.os "linux" -}} + sudo timedatectl set-timezone Europe/Moscow +{{ end -}} echo -e " diff --git a/run_onchange_before_install_main_deps.sh.tmpl b/run_onchange_before_install_main_deps.sh.tmpl index 872ce49..b1980ae 100644 --- a/run_onchange_before_install_main_deps.sh.tmpl +++ b/run_onchange_before_install_main_deps.sh.tmpl @@ -19,7 +19,7 @@ $Green########################################################################## bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" fi brew update - brew upgrade -y + brew upgrade {{ else if eq .chezmoi.osRelease.id "fedora" -}} sudo dnf update -y