Fix non-functioning hook method
This commit is contained in:
parent
cf057d2a69
commit
3916255544
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue