From 8e965d1593d220b945d0dca601d4cfd848f79c83 Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Sat, 17 Sep 2005 23:57:48 +0000 Subject: - Only add compat/ directory to PATH if it exists. Only create it when necessary. --- scripts/patchfns.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'scripts/patchfns.in') diff --git a/scripts/patchfns.in b/scripts/patchfns.in index 2e0b9b0..308548a 100644 --- a/scripts/patchfns.in +++ b/scripts/patchfns.in @@ -24,12 +24,15 @@ DB_VERSION=2 : ${QUILT_PC:=.pc} # Support compatibility layer -if [ -r @QUILT@/compat/compatfns ] +if [ -d @QUILT@/compat ] then - source @QUILT@/compat/compatfns + export PATH="@QUILT@/compat:$PATH" + if [ -r @QUILT@/compat/compatfns ] + then + source @QUILT@/compat/compatfns + fi fi -export PATH="@QUILT@/compat:$PATH" unset CDPATH shopt -s dotglob -- cgit