From bbea4437bcc17ac69f788b6950e208eee548b10b Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Thu, 12 Jan 2023 12:57:39 +0000 Subject: [PATCH] Update 2 files - /home/.chezmoiscripts/universal/run_onchange_after_19-theme-files.tmpl - /home/dot_local/bin/executable_install-program --- .../universal/run_onchange_after_19-theme-files.tmpl | 2 +- home/dot_local/bin/executable_install-program | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/home/.chezmoiscripts/universal/run_onchange_after_19-theme-files.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_19-theme-files.tmpl index 2c5d73ba..76d04acc 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_19-theme-files.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_19-theme-files.tmpl @@ -27,7 +27,7 @@ fi ### Copy theme files over to /usr/local/share if [ -d "$HOME/.local/src/{{ .theme | lower }}/share" ]; then logg info 'Copying ~/.local/src/{{ .theme | lower }}/share to /usr/local/share' - sudo rsync -artvu "$HOME/.local/src/betelgeuse/share/" "/usr/local/share/" + sudo rsync -artvu "$HOME/.local/src/betelgeuse/share/" "/usr/local/share/" > /dev/null else logg warn '~/.local/src/betelgeuse/share is missing' fi diff --git a/home/dot_local/bin/executable_install-program b/home/dot_local/bin/executable_install-program index ba99551d..c0e7fa62 100644 --- a/home/dot_local/bin/executable_install-program +++ b/home/dot_local/bin/executable_install-program @@ -70,7 +70,7 @@ function log(type, label, msg) { } function runCommand(spinnerTitle, command) { - execSync(`gum spin --spinner dot --title "${spinnerTitle}" -- ${command}`, { + execSync(command.includes('sudo') ? `sudo gum spin --spinner dot --title "${spinnerTitle}" -- ${command}` : `gum spin --spinner dot --title "${spinnerTitle}" -- ${command}`, { stdio: 'inherit', shell: true })