diff options
Diffstat (limited to 'community-testing/cronie/run-cron')
-rwxr-xr-x | community-testing/cronie/run-cron | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/community-testing/cronie/run-cron b/community-testing/cronie/run-cron deleted file mode 100755 index 5c62e3377..000000000 --- a/community-testing/cronie/run-cron +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -# run-parts - concept taken from Debian - -# keep going when something fails -set +e - -if [ $# -lt 1 ]; then - echo "Usage: run-parts <dir>" - exit 1 -fi - -if [ ! -d $1 ]; then - echo "Not a directory: $1" - exit 1 -fi - -# Ignore *~ and *, scripts -for i in $1/*[^~,] ; do - [ -d $i ] && continue - # Don't run *.{pacsave,pacorig,pacnew,swp} scripts - [ "${i%.pacsave}" != "${i}" ] && continue - [ "${i%.pacorig}" != "${i}" ] && continue - [ "${i%.pacnew}" != "${i}" ] && continue - [ "${i%.swp}" != "${i}" ] && continue - [ "${i%,v}" != "${i}" ] && continue - - if [ -x $i ]; then - $i 2>&1 | awk -v "progname=$i" \ - 'progname { - print progname ":\n" - progname=""; - } - { print; }' - fi -done - -exit 0 |