diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2005-09-17 23:57:48 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2005-09-17 23:57:48 +0000 |
commit | 8e965d1593d220b945d0dca601d4cfd848f79c83 (patch) | |
tree | 8287d7b4842c830d526655f1896e7bd9c260ce99 /scripts | |
parent | 2d3a503aa8651215e7bb939b995c33356bbce913 (diff) | |
download | quilt-8e965d1593d220b945d0dca601d4cfd848f79c83.tar.gz |
- Only add compat/ directory to PATH if it exists. Only create it
when necessary.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/patchfns.in | 9 |
1 files changed, 6 insertions, 3 deletions
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 |