typo, using local variable for salt-call

This commit is contained in:
Jonas Forsberg 2020-08-01 14:10:23 +02:00
parent bb6f208666
commit f290d39b96
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9

View File

@ -70,12 +70,12 @@ function setup_dotfiles(){
}
function do_salt_call(){
alias salt='sudo salt-call --local --file-root "$HOME/salt/states" --pillar-root "$HOME/salt/pillars" "$@"'
local salt="sudo salt-call --local --file-root $HOME/salt/states --pillar-root $HOME/salt/pillars"
new_log "Running salt high state"
if asktobreak;then
return
fi
salt state.apply
$salt state.apply
}
setup_dotfiles