Skip to content

Commit c594baa

Browse files
committed
Avoid using dirname; sed can do this just as well...
1 parent e0c0da9 commit c594baa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

install-sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ fi
9696

9797
# Make a temp file name in the proper directory.
9898

99-
dstdir=`dirname $dst`
99+
# Avoid dirname, which doesn't exist everywhere...
100+
dstdir=`echo $dst | sed 's,/[^/]*$,,'`
100101
dsttmp=$dstdir/#inst.$$#
101102

102103
# Move or copy the file name to the temp name

0 commit comments

Comments
 (0)