mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-24 12:25:11 +00:00
9 lines
297 B
Bash
9 lines
297 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
readarray -t hooks < <(find .hooks/ -maxdepth 1 -type d -not -wholename .hooks/ -print0)
|
||
|
for v in "${hooks[@]}"; do
|
||
|
hookname=`basename $v`
|
||
|
echo "#!/bin/bash" > .git/hooks/${hookname}
|
||
|
echo "find .hooks/${hookname}/ -type f -name '*.sh' -exec '{}' \;" >> .git/hooks/${hookname}
|
||
|
done
|