I’m reading a bit on alpm-hooks and wrote this:
[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = *
[Action]
Exec = /usr/bin/depencycheck
When = PreTransaction
NeedsTargets
AbortOnFail
#!/bin/bash
packageList=$(</dev/stdin)
echo TESTTESTTESTTEST
echo $packageList
echo TEST END
The script works as intended, but the hook fails with:
:: Running pre-transaction hooks...
(1/1) install.hook
call to execv failed (No such file or directory)
error: command failed to execute correctly
error: failed to commit transaction (failed to run transaction hooks)
Errors occurred, no packages were upgraded.
I don’t understand why.
Edit: Oh because of the typo, duh!