summaryrefslogtreecommitdiff
path: root/community/fcron/run-cron
blob: 8e65e2fd09cdd2a7b5b139ce475d0971e94a62f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash


if [[ -z "$1" ]]; then
   echo "Usage: $0 crondir"
   exit 1
fi

for cron in "$1"/* ; do
  if [[ -x "$cron" ]]; then
     "$cron"
  fi
done
unset cron