diff options
author | Patrick Spek <p.spek@tyil.nl> | 2022-05-06 14:21:43 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2022-05-06 14:21:43 +0200 |
commit | a47bfdbea1c7b4704ffb23dfa4cc8ebb4acc6926 (patch) | |
tree | 765e1c166c8e7e0ece0a0ba7e3c9d0efdb8e8175 /playbooks.d/user-tyil/playbook.bash | |
parent | 4e27169980ab107c67f9f10e6daab748a9600093 (diff) |
Run git pull as tyil
Diffstat (limited to 'playbooks.d/user-tyil/playbook.bash')
-rw-r--r-- | playbooks.d/user-tyil/playbook.bash | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/playbooks.d/user-tyil/playbook.bash b/playbooks.d/user-tyil/playbook.bash index 66de8a0..de91595 100644 --- a/playbooks.d/user-tyil/playbook.bash +++ b/playbooks.d/user-tyil/playbook.bash @@ -30,7 +30,8 @@ playbook_sync() { [[ $BASHTARD_COMMAND == "add" ]] && return notice "$BASHTARD_PLAYBOOK" "Updating dotfiles" - git -C "$(config "users.tyil.home")" pull origin "$(config "users.tyil.git.branch")" + sudo -u tyil \ + git -C "$(config "users.tyil.home")" pull origin "$(config "users.tyil.git.branch")" } playbook_del() { |