Fix two issues:
- Check for rc.d directory's existence before traversing it; - Don't output * when rc.d directory is empty. PR: conf/190665 Submitted by: Oleg Ginzburg <olevole olevole ru> (with changes) MFC after: 2 weeks
This commit is contained in:
parent
31241fa778
commit
7627c2446a
@ -109,7 +109,7 @@ fi
|
|||||||
if [ -n "$LIST" ]; then
|
if [ -n "$LIST" ]; then
|
||||||
for dir in /etc/rc.d $local_startup; do
|
for dir in /etc/rc.d $local_startup; do
|
||||||
[ -n "$VERBOSE" ] && echo "From ${dir}:"
|
[ -n "$VERBOSE" ] && echo "From ${dir}:"
|
||||||
cd $dir && for file in *; do echo $file; done
|
[ -d ${dir} ] && /bin/ls -1 ${dir}
|
||||||
done
|
done
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user