PortValhalla/scripts/Common/Scripts/hooks.sh

14 lines
183 B
Bash
Executable file

#!/bin/bash
function runHook() {
function fallback() {
${@:2};
}
if command -v $1 > /dev/null
then
$1 fallback;
else
fallback;
fi;
}