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:
parent
0e8faedf1a
commit
bbea4437bc
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue