diff options
author | Adam Hovorka <[email protected]> | 2020-05-08 13:35:41 -0600 |
---|---|---|
committer | Adam Hovorka <[email protected]> | 2020-05-08 13:35:41 -0600 |
commit | dc9a44afdc0babdafa2e3e0861af079e891e13a4 (patch) | |
tree | 96fbb14006ef3c4c1db3ec4a424bf4f3eba53236 /etc-pacman.d-hooks-rustup-update.hook | |
parent | 18465d19d30c86273ebe16bb6f9d1f1fd2723aa8 (diff) |
Add rustup-update.hook for pacman
Diffstat (limited to 'etc-pacman.d-hooks-rustup-update.hook')
-rw-r--r-- | etc-pacman.d-hooks-rustup-update.hook | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/etc-pacman.d-hooks-rustup-update.hook b/etc-pacman.d-hooks-rustup-update.hook new file mode 100644 index 0000000..3c9d656 --- /dev/null +++ b/etc-pacman.d-hooks-rustup-update.hook @@ -0,0 +1,12 @@ +[Trigger] +Operation = Upgrade +Type = Package +Target = * + +[Action] +Description = Updating rust components... +When = PostTransaction +Depends = rustup +# !!!! Be sure to manually replace $HOME the actual +# name of the user whose toolchain should be updated +Exec = /bin/sh -c "RUSTUP_HOME='/home/$HOME/.rustup' /bin/rustup update" |