When sourcing "config.sh" in shell scripts, specify it as "./config.sh"

to prevent the shell from searching the PATH for the file.

Submitted by:	David Quattlebaum <sasdrq@unx.sas.com>
This commit is contained in:
John Polstra 1998-02-12 01:14:02 +00:00
parent d55f35c524
commit d173bd5e46
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=9671
2 changed files with 2 additions and 2 deletions

View file

@ -13,6 +13,6 @@ umask 2
test -x ${PREFIX}/sbin/cvsupd || exit 1
echo -n " cvsupd"
cd ${base} || exit
. config.sh || exit
. ./config.sh || exit
su -m ${user} -c \
"cvsupd -e -C ${maxclients} -l @${facility}" >>${out} 2>&1

View file

@ -35,7 +35,7 @@ lockf -t 0 ${lock} /bin/sh << 'E*O*F'
base=${PREFIX}/etc/cvsup
cd ${base} || exit
. config.sh || exit
. ./config.sh || exit
colldir=sup.client
startup=${PREFIX}/etc/rc.d