Don't call hook scripts with exec
So it won't exit after the first script
This commit is contained in:
parent
18630062fa
commit
4eec833ee0
|
@ -5,6 +5,6 @@ ACTION=${1}
|
||||||
if [ -d "/etc/dehydrated/hooks_"$ACTION".d" ]; then
|
if [ -d "/etc/dehydrated/hooks_"$ACTION".d" ]; then
|
||||||
shift
|
shift
|
||||||
for H in $(find /etc/dehydrated/hooks_"$ACTION".d/ -type f -o -type l | sort); do
|
for H in $(find /etc/dehydrated/hooks_"$ACTION".d/ -type f -o -type l | sort); do
|
||||||
[ -x $H ] && exec $H $@
|
[ -x $H ] && $H $@
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue