From 2eb6f28ff4c6c83e8136a9d5f1b78b0b26ba82b1 Mon Sep 17 00:00:00 2001
From: "H. William Welliver III" <bill@welliver.org>
Date: Thu, 30 Oct 2003 17:21:14 -0500
Subject: [PATCH] we need to strip any trailing / from the module destination
 directory, otherwise we fall right through the switch and don't create
 required directories.

Rev: bin/install_module:1.6
---
 bin/install_module | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/install_module b/bin/install_module
index d5b9a8b491..a0bbb6f3f3 100755
--- a/bin/install_module
+++ b/bin/install_module
@@ -11,7 +11,7 @@ DIRS_TO_MAKE=
 DIR="$TO"
 while :
 do
-  DIR=`echo $DIR | sed -e 's@/[^/]*$@@'`
+  DIR=`echo $DIR | sed -e 's@/[^/]*$@@' -e 's@/$@@'`
 
   case "$DIR" in
     *.pmod)
-- 
GitLab