Fix non-functioning hook method

This commit is contained in:
Manuel Thalmann 2024-03-24 05:35:13 +01:00
parent e0c13cd52d
commit 77791fdcec

View file

@ -1,8 +1,10 @@
#!/bin/bash #!/bin/bash
function runHook() { function runHook() {
command="${@:2}";
function fallback() { function fallback() {
${@:2}; $command;
} }
if command -v $1 > /dev/null if command -v $1 > /dev/null