PortValhalla/scripts/Common/Scripts/hooks.fish

13 lines
200 B
Fish
Executable file

function runHook -S -a name message
if type -q "$name"
if test -n "$message"
echo "$message"
end
"$name"
or exit
else
return 1
end
end