diff options
author | Miloslav Trmac <mitr@volny.cz> | 2006-07-27 02:17:03 +0000 |
---|---|---|
committer | Miloslav Trmac <mitr@volny.cz> | 2006-07-27 02:17:03 +0000 |
commit | 3db5ad738151d27001658d570bce0c61648fc2cc (patch) | |
tree | fcb9a69ac7f3896e0636f929fd87f13828c51852 /rc.d/rc | |
parent | 02315ee166c1625d9524a783a1ad49383a4623db (diff) | |
download | initscripts-3db5ad738151d27001658d570bce0c61648fc2cc.tar initscripts-3db5ad738151d27001658d570bce0c61648fc2cc.tar.gz initscripts-3db5ad738151d27001658d570bce0c61648fc2cc.tar.bz2 initscripts-3db5ad738151d27001658d570bce0c61648fc2cc.tar.xz initscripts-3db5ad738151d27001658d570bce0c61648fc2cc.zip |
Consistently exclude backup files when globbing
Diffstat (limited to 'rc.d/rc')
-rwxr-xr-x | rc.d/rc | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -12,13 +12,7 @@ check_runlevel () { # Check if the file exists at all. [ -x "$1" ] || return 1 - - # Reject backup files and files generated by rpm. - case "$1" in - *.rpmsave|*.rpmorig|*.rpmnew|*~|*.orig) - return 1 - ;; - esac + is_ignored_file "$1" && return 1 return 0 } |