Don't call hook scripts with exec

So it won't exit after the first script
This commit is contained in:
Daniel Berteaud 2020-04-09 16:21:44 +02:00
parent 18630062fa
commit 4eec833ee0
1 changed files with 1 additions and 1 deletions

View File

@ -5,6 +5,6 @@ ACTION=${1}
if [ -d "/etc/dehydrated/hooks_"$ACTION".d" ]; then
shift
for H in $(find /etc/dehydrated/hooks_"$ACTION".d/ -type f -o -type l | sort); do
[ -x $H ] && exec $H $@
[ -x $H ] && $H $@
done
fi