PortValhalla/scripts/Common/Scripts/hooks.fish

13 lines
200 B
Fish
Raw Normal View History

2024-07-09 01:57:03 +00:00
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