Files
clr-update-triggers/update-trigger.sh
T
William Douglas 45965cf594 Update run mechanism of the hooks
Use shell globbing to get ordered hooks and only try to run files
ending in 'hook.sh'.
2017-11-07 23:26:01 +00:00

7 lines
148 B
Bash
Executable File

#!/bin/bash
# Try to run all hooks in /usr/libexec/updater
for f in /usr/libexec/updater/*hook.sh ; do
[ -x "$f" ] && [ -f "$x" ] && "$f"
done