Update 2 files

- /home/.chezmoiscripts/universal/run_onchange_after_19-theme-files.tmpl
- /home/dot_local/bin/executable_install-program
This commit is contained in:
Brian Zalewski 2023-01-12 12:57:39 +00:00
parent 0e8faedf1a
commit bbea4437bc
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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
})