Skip to content

Commit

Permalink
Avoid using dirname; sed can do this just as well...
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed May 5, 1998
1 parent e0c0da9 commit c594baa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install-sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c594baa

Please sign in to comment.