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 /bin | |
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 'bin')
-rw-r--r-- | bin/quilt.in | 11 |
1 files changed, 6 insertions, 5 deletions
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() { |