You are not logged in.

#1 2016-08-17 15:10:07

0xnkgtcn
Member
Registered: 2016-08-08
Posts: 4

[SOLVED] Get the files that triggered an alpm hook in the hook

Hi. I want to make an alpm hook, and I want to use the list of files that triggered the hook. How should I do so?

Maybe something like

Exec = /usr/bin/echo the files that triggered this hook are %F

Last edited by 0xnkgtcn (2016-08-18 02:04:48)

Offline

#2 2016-08-17 15:48:02

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,541

Re: [SOLVED] Get the files that triggered an alpm hook in the hook

Try $f

Edit, wait, nevermind, that's part of a loop. I think they're just passed as parameters.

Edit2, look at the "NeedsTargets" option.

Last edited by Scimmia (2016-08-17 15:54:08)

Offline

#3 2016-08-18 02:03:47

0xnkgtcn
Member
Registered: 2016-08-08
Posts: 4

Re: [SOLVED] Get the files that triggered an alpm hook in the hook

Thanks. NeedsTargets is what I wanted. I wouldn't have missed it if I were careful reading the man page.

Last edited by 0xnkgtcn (2016-08-18 03:14:49)

Offline

Board footer

Powered by FluxBB