Fix non-functioning hook method

This commit is contained in:
Manuel Thalmann 2024-03-24 05:35:13 +01:00
parent cf057d2a69
commit 3916255544

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