summary refs log tree commit diff
path: root/Config/installfns.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Config/installfns.sh')
-rwxr-xr-xConfig/installfns.sh7
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/%%'`"