From 3db5ad738151d27001658d570bce0c61648fc2cc Mon Sep 17 00:00:00 2001 From: Miloslav Trmac Date: Thu, 27 Jul 2006 02:17:03 +0000 Subject: Consistently exclude backup files when globbing --- service | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'service') diff --git a/service b/service index c6f4be19..d65d3ff7 100755 --- a/service +++ b/service @@ -1,8 +1,6 @@ #!/bin/sh -# Set up a default search path. -PATH="/sbin:/usr/sbin:/bin:/usr/bin" -export PATH +. /etc/init.d/functions VERSION="`basename $0` ver. 0.91" USAGE="Usage: `basename $0` < option > | --status-all | \ @@ -32,11 +30,11 @@ while [ $# -gt 0 ]; do cd ${SERVICEDIR} for SERVICE in * ; do case "${SERVICE}" in - functions | halt | killall | single| linuxconf| kudzu | \ - *rpmorig | *rpmnew | *rpmsave | *~ | *.orig) + functions | halt | killall | single| linuxconf| kudzu) ;; *) - if [ -x "${SERVICEDIR}/${SERVICE}" ]; then + if ! is_ignored_file "${SERVICE}" \ + && [ -x "${SERVICEDIR}/${SERVICE}" ]; then env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" status fi ;; -- cgit v1.2.1