12 lines
200 B
Fish
Executable file
12 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
|