mirror of
https://github.com/clearlinux/clr-update-triggers.git
synced 2026-09-06 22:01:34 +00:00
Use shell globbing to get ordered hooks and only try to run files ending in 'hook.sh'.
7 lines
148 B
Bash
Executable File
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
|