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. --- bin/quilt.in | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'bin/quilt.in') diff --git a/bin/quilt.in b/bin/quilt.in index 600270b..96ea404 100644 --- a/bin/quilt.in +++ b/bin/quilt.in @@ -18,14 +18,15 @@ then fi # 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" - usage() { -- cgit