commit b2d4eb0e50bcc3ec63ab89107dbcc31d63aa6a25 Author: jehane <maria...@tuxette.fr> Date: Wed Feb 11 18:56:53 2015 +0100
changing tab into spaces fusioninventory-agent.cron | 38 +++++++++++++++++++------------------- 1 files changed, 19 insertions(+), 19 deletions(-) --- diff --git a/fusioninventory-agent.cron b/fusioninventory-agent.cron index e09c0db..8b4b99f 100644 --- a/fusioninventory-agent.cron +++ b/fusioninventory-agent.cron @@ -11,27 +11,27 @@ export PATH i=0 while [ $i -lt ${#OCSMODE[*]} ] do - if [ ${OCSMODE[$i]:-none} == cron ]; then - OPTS= - if [ ! -z "${OCSPAUSE[$i]}" ]; then - OPTS="--wait ${OCSPAUSE[$i]}" - fi + if [ ${OCSMODE[$i]:-none} == cron ]; then + OPTS= + if [ ! -z "${OCSPAUSE[$i]}" ]; then + OPTS="--wait ${OCSPAUSE[$i]}" + fi - if [ ! -z "${OCSTAG[$i]}" ]; then - OPTS="$OPTS --tag=${OCSTAG[$i]}" - fi + if [ ! -z "${OCSTAG[$i]}" ]; then + OPTS="$OPTS --tag=${OCSTAG[$i]}" + fi - if [ "z${OCSSERVER[$i]}" = 'zlocal' ]; then - # Local inventory - OPTS="$OPTS --local=/var/lib/$NAME" - elif [ ! -z "${OCSSERVER[$i]}" ]; then - # Remote inventory - OPTS="$OPTS --lazy --server=${OCSSERVER[$i]}" - fi - echo "[$(date '+%c')] Running $NAME $OPTS" - /usr/bin/$NAME $FUSINVOPT --logfile=$LOG $OPTS - fi - ((i++)) + if [ "z${OCSSERVER[$i]}" = 'zlocal' ]; then + # Local inventory + OPTS="$OPTS --local=/var/lib/$NAME" + elif [ ! -z "${OCSSERVER[$i]}" ]; then + # Remote inventory + OPTS="$OPTS --lazy --server=${OCSSERVER[$i]}" + fi + echo "[$(date '+%c')] Running $NAME $OPTS" + /usr/bin/$NAME $FUSINVOPT --logfile=$LOG $OPTS + fi + ((i++)) done echo "[$(date '+%c')] End of cron job ($PATH)" -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/perl-devel