diff options
Diffstat (limited to 'community/fcron/run-cron')
-rw-r--r-- | community/fcron/run-cron | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/community/fcron/run-cron b/community/fcron/run-cron index 51007a15a..8e65e2fd0 100644 --- a/community/fcron/run-cron +++ b/community/fcron/run-cron @@ -1,14 +1,14 @@ -#!/bin/sh +#!/bin/bash -if [ -z $1 ]; then +if [[ -z "$1" ]]; then echo "Usage: $0 crondir" exit 1 fi -for cron in $1/* ; do - if [ -x $cron ]; then - $cron +for cron in "$1"/* ; do + if [[ -x "$cron" ]]; then + "$cron" fi done unset cron |