summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinstall-sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/install-sh b/install-sh
index 0ff4b6a..98204c5 100755
--- a/install-sh
+++ b/install-sh
@@ -96,7 +96,8 @@ fi
# Make a temp file name in the proper directory.
-dstdir=`dirname $dst`
+# Avoid dirname, which doesn't exist everywhere...
+dstdir=`echo $dst | sed 's,/[^/]*$,,'`
dsttmp=$dstdir/#inst.$$#
# Move or copy the file name to the temp name