diff options
Diffstat (limited to 'Config/installfns.sh')
-rwxr-xr-x | Config/installfns.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Config/installfns.sh b/Config/installfns.sh index 76d937413..8dc1214b0 100755 --- a/Config/installfns.sh +++ b/Config/installfns.sh @@ -18,13 +18,12 @@ for file in $allfuncs; do esac if test x$FUNCTIONS_SUBDIRS != x -a x$FUNCTIONS_SUBDIRS != xno; then case "$file" in - Completion/comp*) + Completion/*/*) subdir="`echo $file | sed -e 's%/[^/]*/[^/]*$%%'`" - instdir="$fndir/Completion" + instdir="$fndir/$subdir" ;; Completion/*) - subdir="`echo $file | sed -e 's%/[^/]*/[^/]*$%%'`" - instdir="$fndir/$subdir" + instdir="$fndir/Completion" ;; *) subdir="`echo $file | sed -e 's%/[^/]*$%%' -e 's%^Functions/%%'`" |