mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
Avoid using dirname; sed can do this just as well...
This commit is contained in:
parent
e0c0da98d8
commit
c594baa552
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue