aboutsummaryrefslogtreecommitdiff
path: root/sh/gendepends.sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-11 12:13:46 +0000
committerRoy Marples <roy@marples.name>2008-01-11 12:13:46 +0000
commit3bf49a9bd19d5bbcf6976dd42b4f87f1b173e287 (patch)
tree8b4d6121f0d4b921566eeec2844c9bf76131de78 /sh/gendepends.sh
parent1f4422c72f968405a0b8bf56d4f9c3b619b1b80d (diff)
Adopt a more C style for scripts and remove vim settings.
Diffstat (limited to 'sh/gendepends.sh')
-rwxr-xr-xsh/gendepends.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/sh/gendepends.sh b/sh/gendepends.sh
index 5536c3f4..de12bc2c 100755
--- a/sh/gendepends.sh
+++ b/sh/gendepends.sh
@@ -49,11 +49,15 @@ for _dir in /etc/init.d /usr/local/etc/init.d; do
_rc_c=${SVCNAME%%.*}
if [ -n "${_rc_c}" -a "${_rc_c}" != "${SVCNAME}" ]; then
- [ -e "${_dir}/../conf.d/${_rc_c}" ] && . "${_dir}/../conf.d/${_rc_c}"
+ if [ -e "${_dir}/../conf.d/${_rc_c}" ]; then
+ . "${_dir}/../conf.d/${_rc_c}"
+ fi
fi
unset _rc_c
- [ -e "${_dir}/../conf.d/${SVCNAME}" ] && . "${_dir}/../conf.d/${SVCNAME}"
+ if [ -e "${_dir}/../conf.d/${SVCNAME}" ]; then
+ . "${_dir}/../conf.d/${SVCNAME}"
+ fi
[ -e /etc/rc.conf ] && . /etc/rc.conf
@@ -71,5 +75,3 @@ for _dir in /etc/init.d /usr/local/etc/init.d; do
)
done
done
-
-# vim: set ts=4 :