diff options
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" |